RunTest must call InitPluginFinder before invoking code under test

This commit is contained in:
John Lewin 2018-12-18 17:05:13 -08:00
parent ec43f251df
commit 488ad1e17f

View file

@ -712,6 +712,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
// Automation runner must do as much as program.cs to spin up platform
string platformFeaturesProvider = "MatterHackers.MatterControl.WindowsPlatformsFeatures, MatterControl.Winforms";
AppContext.Platform = AggContext.CreateInstanceFrom<INativePlatformFeatures>(platformFeaturesProvider);
AppContext.Platform.InitPluginFinder();
AppContext.Platform.ProcessCommandline();
var (width, height) = RootSystemWindow.GetStartupBounds();