Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Martinez <joelmartinez@gmail.com>2018-05-30 17:14:47 +0300
committerJoel Martinez <joelmartinez@gmail.com>2018-05-30 17:14:47 +0300
commit7dc6f3a6292d98c53e427e5001b19c0d344495ab (patch)
tree60373be41c2f2540b920f2de1fc4dc0c248f41a7
parent8d1a5b8cfff3c5b97b6cae8c44a50fcc17beae20 (diff)
WIP: path fix for some unit testsmhutch-add-monodoc-nupkg
-rw-r--r--mdoc/mdoc.Test/BasicTests.cs6
-rw-r--r--mdoc/mdoc.Test/mdoc.Test.csproj3
2 files changed, 8 insertions, 1 deletions
diff --git a/mdoc/mdoc.Test/BasicTests.cs b/mdoc/mdoc.Test/BasicTests.cs
index cddbcbd8..ef136aaa 100644
--- a/mdoc/mdoc.Test/BasicTests.cs
+++ b/mdoc/mdoc.Test/BasicTests.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using System.IO;
using Mono.Cecil;
namespace mdoc.Test
@@ -18,7 +19,10 @@ namespace mdoc.Test
if (!moduleCash.ContainsKey(filepath))
{
- var readModule = ModuleDefinition.ReadModule(filepath);
+ var testAssemblyFilename = this.GetType ().Assembly.Modules.First().FullyQualifiedName;
+ var testDirectory = Path.GetDirectoryName (testAssemblyFilename);
+ var assemblyToOpenPath = Path.Combine (testDirectory, filepath);
+ var readModule = ModuleDefinition.ReadModule(assemblyToOpenPath);
moduleCash.Add(filepath, readModule);
}
diff --git a/mdoc/mdoc.Test/mdoc.Test.csproj b/mdoc/mdoc.Test/mdoc.Test.csproj
index a2d51568..fd9e5b2d 100644
--- a/mdoc/mdoc.Test/mdoc.Test.csproj
+++ b/mdoc/mdoc.Test/mdoc.Test.csproj
@@ -101,6 +101,9 @@
<Project>{979f9f80-12fe-4236-9e93-6d554ab13701}</Project>
<Name>mdoc.Test.FSharp</Name>
</ProjectReference>
+ <PackageReference Include="FSharp.Core">
+ <Version>4.3.4</Version>
+ </PackageReference>
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />