From ec857ed5167c5ac1a38f55085181efae269ab8b6 Mon Sep 17 00:00:00 2001 From: Trygve Wastvedt Date: Mon, 23 Sep 2024 09:31:34 -0500 Subject: [PATCH] Remove errant change --- test/DynamoCoreWpfTests/WatchNodeTests.cs | 38 ----------------------- 1 file changed, 38 deletions(-) diff --git a/test/DynamoCoreWpfTests/WatchNodeTests.cs b/test/DynamoCoreWpfTests/WatchNodeTests.cs index 374d0048442..d4530aa8d9a 100644 --- a/test/DynamoCoreWpfTests/WatchNodeTests.cs +++ b/test/DynamoCoreWpfTests/WatchNodeTests.cs @@ -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() {