Skip to content

Commit

Permalink
Fix Unit Test
Browse files Browse the repository at this point in the history
  • Loading branch information
QilongTang committed May 24, 2016
1 parent e612469 commit 26ee6ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/DynamoCoreWpfTests/WorkspaceSaving.cs
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,10 @@ public void CustomNodeWorkspaceSavedToSamePlaceNotCausingDuplicatedLibraryItems(
var def = dynamoModel.CustomNodeManager.CreateCustomNode(nodeName, catName, "");

var tempPath1 = Path.Combine(TempFolder, nodeName + ".dyf");
var tempPath2 = Path.Combine(TempFolder, nodeName + "_v1.dyf");

// Create the folder first incase it does not exist
Directory.CreateDirectory(Path.Combine(TempFolder, nodeName, nodeName));
var tempPath2 = Path.Combine(TempFolder, nodeName, nodeName + ".dyf");

var res = def.SaveAs(tempPath1, ViewModel.Model.EngineController.LiveRunnerRuntimeCore);
Assert.IsTrue(res);
Expand Down

0 comments on commit 26ee6ea

Please sign in to comment.