12 instantiations of FrameDimension
System.Drawing.Common.Tests (12)
System\Drawing\BitmapTests.cs (2)
496
Assert.Equal(1, bitmap.GetFrameCount(new
FrameDimension
(Guid.Empty)));
518
Assert.Equal(0, bitmap.SelectActiveFrame(new
FrameDimension
(Guid.Empty), index));
System\Drawing\Imaging\FrameDimensionTests.cs (10)
12
FrameDimension fd =
new
(guid);
23
yield return new object[] { new Guid("48749428-316f-496a-ab30-c819a92b3137"), new
FrameDimension
(new Guid("48749428-316f-496a-ab30-c819a92b3137")) };
31
yield return new object[] { new
FrameDimension
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new
FrameDimension
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), true };
32
yield return new object[] { new
FrameDimension
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new
FrameDimension
(new Guid("b96b3cad-0728-11d3-9d7b-0000f81ef32e")), false };
33
yield return new object[] { new
FrameDimension
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), null, false };
34
yield return new object[] { new
FrameDimension
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new(), false };
45
yield return new object[] { "[FrameDimension: 48749428-316f-496a-ab30-c819a92b3137]", new
FrameDimension
(new Guid("48749428-316f-496a-ab30-c819a92b3137")) };
67
Assert.Equal(guid.GetHashCode(), new
FrameDimension
(guid).GetHashCode());
26 references to FrameDimension
System.Drawing (1)
System.Drawing.cs (1)
85
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Imaging.
FrameDimension
))]
System.Drawing.Common (5)
Special\NotSupported.cs (5)
787
public int GetFrameCount(System.Drawing.Imaging.
FrameDimension
dimension) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
803
public int SelectActiveFrame(System.Drawing.Imaging.
FrameDimension
dimension, int frameIndex) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2393
public static System.Drawing.Imaging.
FrameDimension
Page { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
2394
public static System.Drawing.Imaging.
FrameDimension
Resolution { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
2395
public static System.Drawing.Imaging.
FrameDimension
Time { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (20)
mono\System.Drawing\BitmapTests.cs (2)
350
int cnt = bmp.GetFrameCount(
FrameDimension
.Page);
351
int active = bmp.SelectActiveFrame(
FrameDimension
.Page, 0);
System\Drawing\BitmapTests.cs (8)
493
Assert.Equal(1, bitmap.GetFrameCount(
FrameDimension
.Page));
494
Assert.Equal(1, bitmap.GetFrameCount(
FrameDimension
.Resolution));
495
Assert.Equal(1, bitmap.GetFrameCount(
FrameDimension
.Time));
505
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.GetFrameCount(
FrameDimension
.Page));
515
Assert.Equal(0, bitmap.SelectActiveFrame(
FrameDimension
.Page, index));
516
Assert.Equal(0, bitmap.SelectActiveFrame(
FrameDimension
.Resolution, index));
517
Assert.Equal(0, bitmap.SelectActiveFrame(
FrameDimension
.Time, index));
527
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.SelectActiveFrame(
FrameDimension
.Page, 0));
System\Drawing\Imaging\FrameDimensionTests.cs (10)
12
FrameDimension
fd = new(guid);
20
yield return new object[] { new Guid("{6aedbd6d-3fb5-418a-83a6-7f45229dc872}"),
FrameDimension
.Time };
21
yield return new object[] { new Guid("{84236f7b-3bd3-428f-8dab-4ea1439ca315}"),
FrameDimension
.Resolution };
22
yield return new object[] { new Guid("{7462dc86-6180-4c7e-8e3f-ee7333a7a483}"),
FrameDimension
.Page };
42
yield return new object[] { "Time",
FrameDimension
.Time };
43
yield return new object[] { "Resolution",
FrameDimension
.Resolution };
44
yield return new object[] { "Page",
FrameDimension
.Page };
51
public void Guid_ReturnsExpected(Guid expected,
FrameDimension
frameDimension)
58
public void Equals_Object_ReturnsExpected(
FrameDimension
frameDimension, object obj, bool result)
72
public void ToString_ReturnsExpected(string expected,
FrameDimension
imageFormat)