Remove defaultTestImages parameter
- Leave as null, fall back to default on null
This commit is contained in:
parent
222535b107
commit
28699c9197
15 changed files with 64 additions and 67 deletions
|
|
@ -61,14 +61,6 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
Assert.IsTrue(testRunner.ClickByName(" Remove All Menu Item", 2));
|
||||
}
|
||||
|
||||
public static string DefaultTestImages
|
||||
{
|
||||
get
|
||||
{
|
||||
return TestContext.CurrentContext.ResolveProjectPath(4, "Tests", "TestData", "TestImages");
|
||||
}
|
||||
}
|
||||
|
||||
public static void CreateDownloadsSubFolder()
|
||||
{
|
||||
Directory.CreateDirectory(PathToDownloadsSubFolder);
|
||||
|
|
@ -385,6 +377,11 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
MatterControlUtilities.AddItemsToQueue(queueTemplateDirectory);
|
||||
}
|
||||
|
||||
if (defaultTestImages == null)
|
||||
{
|
||||
defaultTestImages = TestContext.CurrentContext.ResolveProjectPath(4, "Tests", "TestData", "TestImages");
|
||||
}
|
||||
|
||||
MatterControlApplication matterControlWindow = MatterControlApplication.CreateInstance(overrideWidth, overrideHeight);
|
||||
return AutomationRunner.ShowWindowAndExecuteTests(matterControlWindow, testMethod, maxTimeToRun, defaultTestImages);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue