13 references to GetBounds
System.Drawing.Common.Tests (13)
System\Drawing\Drawing2D\GraphicsPathTests.cs (13)
1093Assert.Equal(new RectangleF(6f, 6f, 6f, 6f), gp.GetBounds());
1119Assert.Equal(new RectangleF(0f, 0f, 0f, 0f), gp.GetBounds());
1129Assert.Equal(rectangle, gp.GetBounds());
1142gp.GetBounds().Should().BeApproximately(new(60f, 60f, 43.3f, 48.3f), precision: 0.1f);
2084path.GetBounds().Should().BeApproximately(new(1f, 1f, 1f, 1f), precision: 0.000001f);
2100path.GetBounds().Should().BeApproximately(new(2.99962401f, 2.01370716f, 0f, 0.0137047768f), Delta);
2117path.GetBounds().Should().BeApproximately(new(1f, 1f, 3f, 3f), Delta);
2133path.GetBounds().Should().BeApproximately(new(1f, 1f, 1f, 1f), Delta);
2143path.GetBounds().Should().BeApproximately(new(0.8333333f, 0.8333333f, 2.33333278f, 2.33333278f), Delta);
2159path.GetBounds().Should().BeApproximately(new(1f, 1f, 2f, 2f), Delta);
2169path.GetBounds().Should().BeApproximately(new(1f, 1f, 2f, 2f), Delta);
2185path.GetBounds().Should().BeApproximately(new(2f, 2f, 0.9999058f, 0.0274119377f), Delta);
2202path.GetBounds().Should().BeApproximately(new(1f, 1f, 2f, 2f), Delta);