RunTest must call InitPluginFinder before invoking code under test
This commit is contained in:
parent
ec43f251df
commit
488ad1e17f
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue