Skip to content

Commit 1ef89d5

Browse files
committed
Add to tests
1 parent 2c949de commit 1ef89d5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/DynamoCoreTests/Configuration/ExecutionSessionTests.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class ExecutionSessionTests : DynamoModelTestBase
1010
{
1111
private TimeSpan lastExecutionDuration = new TimeSpan();
1212
private IEnumerable<string> packagePaths;
13+
private string preferenceFilePath;
1314

1415
protected override void GetLibrariesToPreload(List<string> libraries)
1516
{
@@ -38,18 +39,19 @@ public void TestExecutionSession()
3839

3940
[Test]
4041
[Category("UnitTests")]
41-
public void TestExecutionSessionPackagePaths()
42+
public void TestExecutionSessionPaths()
4243
{
4344
ExecutionEvents.GraphPreExecution += ExecutionEvents_GraphPreExecution;
4445
RunModel(@"core\HomogeneousList\HomogeneousInputsValid.dyn");
45-
Assert.IsNotEmpty(packagePaths, "packgePaths was empty");
46+
Assert.IsNotEmpty(packagePaths, "packagePaths was empty");
47+
Assert.IsNotEmpty(preferenceFilePath, "preferenceFilePath was empty");
4648
ExecutionEvents.GraphPreExecution -= ExecutionEvents_GraphPreExecution;
4749
}
4850

4951
private void ExecutionEvents_GraphPreExecution(Session.IExecutionSession session)
5052
{
5153
packagePaths = ExecutionEvents.ActiveSession.GetParameterValue(Session.ParameterKeys.PackagePaths) as IEnumerable<string>;
52-
54+
preferenceFilePath = ExecutionEvents.ActiveSession.GetParameterValue(Session.ParameterKeys.PreferenceFilePath) as string;
5355
}
5456

5557
[OneTimeTearDown]

0 commit comments

Comments
 (0)