From 46e78ae2268c9a68b55be9d6ec7c9b6ce676539a Mon Sep 17 00:00:00 2001 From: pinzart90 Date: Tue, 20 Feb 2024 10:35:37 -0500 Subject: [PATCH] Update DynamoTestUIBase.cs --- test/DynamoCoreWpfTests/DynamoTestUIBase.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/DynamoCoreWpfTests/DynamoTestUIBase.cs b/test/DynamoCoreWpfTests/DynamoTestUIBase.cs index 4afd991c1ea..a30bd8efd50 100644 --- a/test/DynamoCoreWpfTests/DynamoTestUIBase.cs +++ b/test/DynamoCoreWpfTests/DynamoTestUIBase.cs @@ -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} "); } } @@ -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; }