From 1ef89d56b339489b589252f382ce5277fa1718aa Mon Sep 17 00:00:00 2001 From: Trygve Wastvedt Date: Mon, 23 Sep 2024 16:09:38 -0500 Subject: [PATCH] Add to tests --- .../Configuration/ExecutionSessionTests.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/DynamoCoreTests/Configuration/ExecutionSessionTests.cs b/test/DynamoCoreTests/Configuration/ExecutionSessionTests.cs index e968f919e73..d7edbffd5c6 100644 --- a/test/DynamoCoreTests/Configuration/ExecutionSessionTests.cs +++ b/test/DynamoCoreTests/Configuration/ExecutionSessionTests.cs @@ -10,6 +10,7 @@ class ExecutionSessionTests : DynamoModelTestBase { private TimeSpan lastExecutionDuration = new TimeSpan(); private IEnumerable packagePaths; + private string preferenceFilePath; protected override void GetLibrariesToPreload(List libraries) { @@ -38,18 +39,19 @@ public void TestExecutionSession() [Test] [Category("UnitTests")] - public void TestExecutionSessionPackagePaths() + public void TestExecutionSessionPaths() { ExecutionEvents.GraphPreExecution += ExecutionEvents_GraphPreExecution; RunModel(@"core\HomogeneousList\HomogeneousInputsValid.dyn"); - Assert.IsNotEmpty(packagePaths, "packgePaths was empty"); + Assert.IsNotEmpty(packagePaths, "packagePaths was empty"); + Assert.IsNotEmpty(preferenceFilePath, "preferenceFilePath was empty"); ExecutionEvents.GraphPreExecution -= ExecutionEvents_GraphPreExecution; } private void ExecutionEvents_GraphPreExecution(Session.IExecutionSession session) { packagePaths = ExecutionEvents.ActiveSession.GetParameterValue(Session.ParameterKeys.PackagePaths) as IEnumerable; - + preferenceFilePath = ExecutionEvents.ActiveSession.GetParameterValue(Session.ParameterKeys.PreferenceFilePath) as string; } [OneTimeTearDown]