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