diff options
author | Lluis Sanchez <llsan@microsoft.com> | 2020-09-24 13:02:19 +0300 |
---|---|---|
committer | Lluis Sanchez <llsan@microsoft.com> | 2020-09-24 13:02:19 +0300 |
commit | cdb0eadc3924585012e269edebdedf1bcb1d46ae (patch) | |
tree | 747bf49a53d0fe96540301fbfd8726f25ab40742 /Test | |
parent | 6788491d545966417e7d7842cd176dc38da1772d (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.cs | 7 |
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)); |