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

github.com/mono/mono-addins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorLluis Sanchez <llsan@microsoft.com>2020-09-24 13:02:19 +0300
committerLluis Sanchez <llsan@microsoft.com>2020-09-24 13:02:19 +0300
commitcdb0eadc3924585012e269edebdedf1bcb1d46ae (patch)
tree747bf49a53d0fe96540301fbfd8726f25ab40742 /Test
parent6788491d545966417e7d7842cd176dc38da1772d (diff)
Fix unit tests
Fixed several issues that caused unit tests to always fail when running from inside VS Mac.
Diffstat (limited to 'Test')
-rw-r--r--Test/UnitTests/TestBase.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Test/UnitTests/TestBase.cs b/Test/UnitTests/TestBase.cs
index f5485f6..0742fec 100644
--- a/Test/UnitTests/TestBase.cs
+++ b/Test/UnitTests/TestBase.cs
@@ -30,8 +30,11 @@ namespace UnitTests
Directory.Delete (TempDir, true);
Directory.CreateDirectory (TempDir);
}
-
- AddinManager.Initialize (TempDir);
+
+ // Provide the current assembly as startup assembly, otherwise it will pick the
+ // unit test runner as startup assembly
+
+ AddinManager.AddinEngine.Initialize (GetType().Assembly, null, TempDir, null, null);
if (firstRun)
AddinManager.Registry.Update (new ConsoleProgressStatus (true));