Skip to content

Commit

Permalink
Remove errant change
Browse files Browse the repository at this point in the history
  • Loading branch information
twastvedt committed Sep 23, 2024
1 parent 678ceef commit ec857ed
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions test/DynamoCoreWpfTests/WatchNodeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,44 +280,6 @@ public void WatchDictionary()
Assert.AreEqual("String", watchVM.Children.ElementAt(2).ValueType);
}

[Test]
public void WatchNodeSizeSerializationTest()
{
string openPath = Path.Combine(TestDirectory, @"core\watch\WatchSerializationTest.dyn");
ViewModel.OpenCommand.Execute(openPath);
ViewModel.HomeSpace.Run();

var watchNode = ViewModel.Model.CurrentWorkspace.NodeFromWorkspace("76ea40b1-5e21-48b8-9051-0b6b03ee5075") as Watch;

//assert default width and height for the watch node.
Assert.AreEqual(watchNode.WatchWidth, WatchTree.DefaultWidthSize);
Assert.AreEqual(watchNode.WatchHeight, WatchTree.DefaultHeightSize);

//Set the width and height of watch node to new values.
watchNode.WatchWidth = 150;
watchNode.WatchHeight = 300;

//save the workspace and reopen it to test (de)seralization
ViewModel.HomeSpace.Save(openPath);
ViewModel.HomeSpace.Clear();

ViewModel.OpenCommand.Execute(openPath);
ViewModel.HomeSpace.Run();

watchNode = ViewModel.Model.CurrentWorkspace.NodeFromWorkspace("76ea40b1-5e21-48b8-9051-0b6b03ee5075") as Watch;

//Assert new width and height
Assert.AreEqual(watchNode.WatchWidth, 150);
Assert.AreEqual(watchNode.WatchHeight, 300);

//reset back to default.
watchNode.WatchWidth = WatchTree.DefaultWidthSize;
watchNode.WatchHeight = WatchTree.DefaultHeightSize;

ViewModel.HomeSpace.Save(openPath);
ViewModel.HomeSpace.Clear();
}

[Test]
public void WatchNumber()
{
Expand Down

0 comments on commit ec857ed

Please sign in to comment.