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