Skip to content

Commit

Permalink
address regressions related to samples (#14900)
Browse files Browse the repository at this point in the history
  • Loading branch information
QilongTang committed Jan 29, 2024
1 parent a6a111c commit bedf90c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/DynamoCoreWpfTests/WorkspaceOpeningTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public void OpeningWorkspaceSetsPosition()
{
var ws = OpenWorkspaceFromSampleFile();
Assert.AreEqual(ws.Name, "Basics_Basic01");
Assert.AreEqual(ws.X, -1915.11, .1);
Assert.AreEqual(ws.Y, -330.08, .1);
Assert.AreEqual(ws.X, -2651.25, .1);
Assert.AreEqual(ws.Y, -490.92, .1);
}

[Test]
Expand Down Expand Up @@ -85,7 +85,7 @@ public void OpeningWorkspaceSetsZoom()
{
var ws = OpenWorkspaceFromSampleFile();
var wvm = ViewModel.CurrentSpaceViewModel;
Assert.AreEqual(wvm.Zoom, 0.76, .1);
Assert.AreEqual(wvm.Zoom, 1.0, .1);
}

[Test]
Expand Down Expand Up @@ -146,7 +146,7 @@ public void ManipulatingWorkspaceDoesNotAffectZoom()

_ = OpenWorkspaceFromSampleFile();
var wvm = ViewModel.CurrentSpaceViewModel;
Assert.AreEqual(wvm.Zoom, 0.761, .1);
Assert.AreEqual(wvm.Zoom, 1.0, .1);
}

private WorkspaceModel OpenWorkspaceFromSampleFile()
Expand Down

0 comments on commit bedf90c

Please sign in to comment.