Skip to content

Commit

Permalink
[dotnet] fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Sep 17, 2023
1 parent c80ce4d commit 61f6122
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dotnet/test/common/PositionAndSizeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ public void ShouldHandleNonIntegerPositionAndSize()
string left = r2.GetCssValue("left");
Assert.AreEqual(Math.Round(Convert.ToDecimal(left.Replace("px", "")), 1), 10.9);
string top = r2.GetCssValue("top");
Assert.That(top, Does.StartWith("10.1"));
Assert.AreEqual(Math.Round(Convert.ToDecimal(top.Replace("px", "")), 1), 10.1);
Assert.AreEqual(new Point(11, 10), r2.Location);
string width = r2.GetCssValue("width");
Assert.That(width, Does.StartWith("48.6"));
Assert.AreEqual(Math.Round(Convert.ToDecimal(width.Replace("px", "")), 1), 48.6);
string height = r2.GetCssValue("height");
Assert.That(height, Does.StartWith("49.3"));
Assert.AreEqual(Math.Round(Convert.ToDecimal(height.Replace("px", "")), 1), 49.3);
Assert.AreEqual(r2.Size, new Size(49, 49));
}

Expand Down

0 comments on commit 61f6122

Please sign in to comment.