13 references to BeApproximately
System.Drawing.Common.Tests (12)
System\Drawing\Drawing2D\GraphicsPathTests.cs (12)
1142
gp.GetBounds().Should().
BeApproximately
(new(60f, 60f, 43.3f, 48.3f), precision: 0.1f);
1731
gp.GetBounds(null).Should().
BeApproximately
(expectedBounds, Delta);
1732
gp.GetBounds(matrix).Should().
BeApproximately
(expectedBounds, Delta);
2084
path.GetBounds().Should().
BeApproximately
(new(1f, 1f, 1f, 1f), precision: 0.000001f);
2100
path.GetBounds().Should().
BeApproximately
(new(2.99962401f, 2.01370716f, 0f, 0.0137047768f), Delta);
2117
path.GetBounds().Should().
BeApproximately
(new(1f, 1f, 3f, 3f), Delta);
2133
path.GetBounds().Should().
BeApproximately
(new(1f, 1f, 1f, 1f), Delta);
2143
path.GetBounds().Should().
BeApproximately
(new(0.8333333f, 0.8333333f, 2.33333278f, 2.33333278f), Delta);
2159
path.GetBounds().Should().
BeApproximately
(new(1f, 1f, 2f, 2f), Delta);
2169
path.GetBounds().Should().
BeApproximately
(new(1f, 1f, 2f, 2f), Delta);
2185
path.GetBounds().Should().
BeApproximately
(new(2f, 2f, 0.9999058f, 0.0274119377f), Delta);
2202
path.GetBounds().Should().
BeApproximately
(new(1f, 1f, 2f, 2f), Delta);
System.Windows.Forms.Tests (1)
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (1)
962
RectangleF.Should().
BeApproximately
(other.RectangleF, Delta);