25 references to CompositingMode
System.Drawing (1)
System.Drawing.Common (1)
System.Drawing.Common.Tests (23)
System\Drawing\GraphicsTests.cs (10)
300yield return new object[] { CompositingMode.SourceCopy, Color.FromArgb(160, 255, 255, 255) };
301yield return new object[] { CompositingMode.SourceOver, Color.FromArgb(220, 185, 185, 185) };
306public void CompositingMode_Set_GetReturnsExpected(CompositingMode mode, Color expectedOverlap)
333[InlineData(CompositingMode.SourceOver - 1)]
334[InlineData(CompositingMode.SourceCopy + 1)]
335public void CompositingMode_SetInvalid_ThrowsInvalidEnumArgumentException(CompositingMode compositingMode)
351Assert.Throws<InvalidOperationException>(() => graphics.CompositingMode = CompositingMode.SourceCopy);
367AssertExtensions.Throws<ArgumentException>(null, () => graphics.CompositingMode = CompositingMode.SourceCopy);
2793graphics.CompositingMode = CompositingMode.SourceCopy;
2803Assert.Equal(CompositingMode.SourceOver, graphics.CompositingMode);