13 references to BeApproximately
System.Drawing.Common.Tests (12)
System\Drawing\Drawing2D\GraphicsPathTests.cs (12)
1142gp.GetBounds().Should().BeApproximately(new(60f, 60f, 43.3f, 48.3f), precision: 0.1f); 1731gp.GetBounds(null).Should().BeApproximately(expectedBounds, Delta); 1732gp.GetBounds(matrix).Should().BeApproximately(expectedBounds, Delta); 2079path.GetBounds().Should().BeApproximately(new(1f, 1f, 1f, 1f), precision: 0.000001f); 2095path.GetBounds().Should().BeApproximately(new(2.99962401f, 2.01370716f, 0f, 0.0137047768f), Delta); 2112path.GetBounds().Should().BeApproximately(new(1f, 1f, 3f, 3f), Delta); 2128path.GetBounds().Should().BeApproximately(new(1f, 1f, 1f, 1f), Delta); 2138path.GetBounds().Should().BeApproximately(new(0.8333333f, 0.8333333f, 2.33333278f, 2.33333278f), Delta); 2154path.GetBounds().Should().BeApproximately(new(1f, 1f, 2f, 2f), Delta); 2164path.GetBounds().Should().BeApproximately(new(1f, 1f, 2f, 2f), Delta); 2180path.GetBounds().Should().BeApproximately(new(2f, 2f, 0.9999058f, 0.0274119377f), Delta); 2197path.GetBounds().Should().BeApproximately(new(1f, 1f, 2f, 2f), Delta);
System.Windows.Forms.Tests (1)
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (1)
1054RectangleF.Should().BeApproximately(other.RectangleF, Delta);