Skip to content

Commit

Permalink
Update DynamoTestUIBase.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzart90 committed Feb 20, 2024
1 parent f17edaf commit 46e78ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/DynamoCoreWpfTests/DynamoTestUIBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ public virtual void Open(string pathInTestsDir)
string openPath = Path.Combine(GetTestDirectory(ExecutingDirectory), pathInTestsDir);
ViewModel.OpenCommand.Execute(openPath);

var xx = ViewModel.Model.EngineController.GetRuntimeWarnings();
if (xx.Count > 0)
var dsExe = ViewModel.Model.EngineController.LiveRunnerRuntimeCore.DSExecutable;
if (dsExe == null)
{
throw new Exception($"Found runtime warnings while opening the graph {pathInTestsDir} during test {TestContext.CurrentContext.Test.Name} ");
throw new Exception($"Live Runner DSExecutable is null while opening file {pathInTestsDir} during test {TestContext.CurrentContext.Test.Name} ");
}
}

Expand All @@ -194,10 +194,10 @@ public virtual void Run()
Thread.Sleep(1);
}

var xx = ViewModel.Model.EngineController.GetRuntimeWarnings();
if (xx.Count > 0)
var dsExe = ViewModel.Model.EngineController.LiveRunnerRuntimeCore.DSExecutable;
if (dsExe == null)
{
throw new Exception($"Runtime warnings while running the graph {ViewModel.HomeSpace.FileName} during test {TestContext.CurrentContext.Test.Name} ");
throw new Exception($"Live Runner DSExecutable is null while running graph at {ViewModel.HomeSpace.FileName} during test {TestContext.CurrentContext.Test.Name} ");
}
ViewModel.Model.EvaluationCompleted -= markDone;
}
Expand Down

0 comments on commit 46e78ae

Please sign in to comment.