From cdb0eadc3924585012e269edebdedf1bcb1d46ae Mon Sep 17 00:00:00 2001 From: Lluis Sanchez Date: Thu, 24 Sep 2020 12:02:19 +0200 Subject: Fix unit tests Fixed several issues that caused unit tests to always fail when running from inside VS Mac. --- Test/UnitTests/TestBase.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Test') 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)); -- cgit v1.2.3