29 references to Flat
System.Drawing.Common.Tests (29)
System\Drawing\Drawing2D\CustomLineCapTests.cs (22)
10yield return new object[] { new GraphicsPath(), null, LineCap.Flat, 0f, LineCap.Flat }; 15yield return new object[] { new GraphicsPath(), null, LineCap.NoAnchor, 0f, LineCap.Flat }; 16yield return new object[] { new GraphicsPath(), null, LineCap.SquareAnchor, 0f, LineCap.Flat }; 17yield return new object[] { new GraphicsPath(), null, LineCap.DiamondAnchor, 0f, LineCap.Flat }; 18yield return new object[] { new GraphicsPath(), null, LineCap.ArrowAnchor, 0f, LineCap.Flat }; 30yield return new object[] { null, strokePath, LineCap.Flat, 0f, LineCap.Flat }; 37yield return new object[] { fillPath, null, LineCap.Flat, 0f, LineCap.Flat }; 57[InlineData(LineCap.Flat - 1)] 64Assert.Equal(LineCap.Flat, customLineCap.BaseCap); 106[InlineData(LineCap.Flat - 1, LineCap.Flat)] // Below valid enum range 107[InlineData(LineCap.Custom + 1, LineCap.Flat)] // Above valid enum range 116Assert.Equal(LineCap.Flat, retrievedStartCap); 117Assert.Equal(LineCap.Flat, retrievedEndCap); 137[InlineData(LineCap.Flat)] // Default value 155[InlineData(LineCap.Flat - 1)] 162Assert.Equal(LineCap.Flat, customLineCap.BaseCap); 218AssertExtensions.Throws<ArgumentException>(null, () => customLineCap.SetStrokeCaps(LineCap.Flat, LineCap.Flat));
System\Drawing\PenTests.cs (7)
643yield return new object[] { LineCap.Flat }; 668yield return new object[] { LineCap.Flat - 1 }; 1000[InlineData(LineCap.Flat, LineCap.Round, DashCap.Triangle)] 1001[InlineData(LineCap.Flat - 1, LineCap.Flat - 1, DashCap.Flat - 1)] 1217Assert.Equal(LineCap.Flat, pen.EndCap); 1221Assert.Equal(LineCap.Flat, pen.StartCap);