Extract test initialization code from printer construction method
This commit is contained in:
parent
9b18c230b9
commit
64e63a5a1d
1 changed files with 7 additions and 3 deletions
|
|
@ -50,6 +50,13 @@ namespace MatterControl.Tests.MatterControl.ToolChanges
|
|||
{
|
||||
public class ToolChangeTests
|
||||
{
|
||||
[SetUp]
|
||||
public void TestSetup()
|
||||
{
|
||||
AggContext.StaticData = new FileSystemStaticData(TestContext.CurrentContext.ResolveProjectPath(4, "StaticData"));
|
||||
MatterControlUtilities.OverrideAppDataLocation(TestContext.CurrentContext.ResolveProjectPath(4));
|
||||
}
|
||||
|
||||
[Test, Category("GCodeStream")]
|
||||
public async Task ToolChangeNoHeat()
|
||||
{
|
||||
|
|
@ -348,9 +355,6 @@ namespace MatterControl.Tests.MatterControl.ToolChanges
|
|||
|
||||
private static PrinterConfig SetupToolChangeSettings()
|
||||
{
|
||||
AggContext.StaticData = new FileSystemStaticData(TestContext.CurrentContext.ResolveProjectPath(4, "StaticData"));
|
||||
MatterControlUtilities.OverrideAppDataLocation(TestContext.CurrentContext.ResolveProjectPath(4));
|
||||
|
||||
// this is the pause and resume from the Eris
|
||||
var printer = new PrinterConfig(new PrinterSettings());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue