Move test helper method to dedicated type to prevent unwanted spinup
This commit is contained in:
parent
af2d39ccf9
commit
43f329cb8d
3 changed files with 7 additions and 3 deletions
|
|
@ -107,7 +107,6 @@ namespace MatterHackers.MatterControl
|
|||
Titillium,
|
||||
};
|
||||
|
||||
|
||||
public static class AppContext
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -47,7 +47,10 @@ namespace MatterHackers.MatterControl
|
|||
MCWSBaseUri = "https://mattercontrol.appspot.com";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class BuildValidationTests
|
||||
{
|
||||
private static void AssertDebugNotDefined()
|
||||
{
|
||||
#if DEBUG
|
||||
|
|
@ -57,7 +60,7 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
public static void CheckKnownAssemblyConditionalCompSymbols()
|
||||
{
|
||||
MatterControlApplication.AssertDebugNotDefined();
|
||||
BuildValidationTests.AssertDebugNotDefined();
|
||||
GCodeFile.AssertDebugNotDefined();
|
||||
MatterHackers.Agg.Graphics2D.AssertDebugNotDefined();
|
||||
MatterHackers.Agg.UI.SystemWindow.AssertDebugNotDefined();
|
||||
|
|
|
|||
|
|
@ -97,6 +97,8 @@ namespace MatterControl.Tests
|
|||
{
|
||||
await MatterControlUtilities.RunTest((testRunner) =>
|
||||
{
|
||||
testRunner.WaitForName("PartPreviewContent");
|
||||
|
||||
Assert.IsTrue(testRunner.NameExists("PartPreviewContent"));
|
||||
|
||||
return Task.CompletedTask;
|
||||
|
|
@ -129,7 +131,7 @@ namespace MatterControl.Tests
|
|||
public void ClassicDebugComplicationFlagTests()
|
||||
{
|
||||
#if (!DEBUG)
|
||||
MatterControlApplication.CheckKnownAssemblyConditionalCompSymbols();
|
||||
BuildValidationTests.CheckKnownAssemblyConditionalCompSymbols();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue