33 references to IsInfinite
System.Drawing.Common.Tests (31)
mono\System.Drawing\GraphicsTests.cs (5)
167
Assert.True(g.Clip.
IsInfinite
(g));
170
Assert.True(g.Clip.
IsInfinite
(g));
536
Assert.True(g.Clip.
IsInfinite
(g));
907
Assert.True(g.Clip.
IsInfinite
(g), message + ".Clip.IsInfinite");
922
Assert.False(g.Clip.
IsInfinite
(g), message + ".Clip.IsInfinite");
System\Drawing\Graphics_GetContextTests.cs (2)
24
Assert.True(region.
IsInfinite
(graphics));
55
Assert.True(region.
IsInfinite
(graphics));
System\Drawing\RegionTests.cs (24)
46
Assert.True(region.
IsInfinite
(s_graphic));
60
Assert.False(region.
IsInfinite
(s_graphic));
76
Assert.False(region.
IsInfinite
(s_graphic));
227
Assert.Equal(isInfinite, region.
IsInfinite
(s_graphic));
377
Assert.False(region.
IsInfinite
(s_graphic));
885
Assert.True(region.
IsInfinite
(s_graphic));
1051
Assert.False(clipRegion.
IsInfinite
(s_graphic));
1186
Assert.False(region.
IsInfinite
(s_graphic));
1214
Assert.False(region.
IsInfinite
(s_graphic));
1282
AssertExtensions.Throws<ArgumentNullException>("g", () => region.
IsInfinite
(null));
1292
AssertExtensions.Throws<ArgumentException>(null, () => region.
IsInfinite
(graphics));
1298
AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().
IsInfinite
(s_graphic));
1444
Assert.False(region.
IsInfinite
(s_graphic));
1471
Assert.True(region.
IsInfinite
(s_graphic));
1476
Assert.True(region.
IsInfinite
(s_graphic));
1781
Assert.True(region.
IsInfinite
(s_graphic));
1841
Assert.True(region.
IsInfinite
(s_graphic));
1855
Assert.False(region.
IsInfinite
(s_graphic));
1868
Assert.False(region.
IsInfinite
(s_graphic));
1906
Assert.False(region.
IsInfinite
(s_graphic));
1929
Assert.False(region.
IsInfinite
(s_graphic));
1941
Assert.True(region.
IsInfinite
(s_graphic));
1958
Assert.False(region.
IsInfinite
(s_graphic));
2139
Assert.True(region.
IsInfinite
(s_graphic));
System.Windows.Forms (1)
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
161
bool isInfinite = clip?.
IsInfinite
(graphics) ?? true;
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextScopeTests.cs (1)
38
Assert.True(oldRegion.
IsInfinite
(graphics));