24 references to DashCap
System.Drawing (1)
System.Drawing.cs (1)
28
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.
DashCap
))]
System.Drawing.Common (2)
Special\NotSupported.cs (2)
854
public System.Drawing.Drawing2D.
DashCap
DashCap { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
875
public void SetLineCap(System.Drawing.Drawing2D.LineCap startCap, System.Drawing.Drawing2D.LineCap endCap, System.Drawing.Drawing2D.
DashCap
dashCap) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (21)
System\Drawing\PenTests.cs (19)
468
[InlineData(
DashCap
.Flat)]
469
[InlineData(
DashCap
.Round)]
470
[InlineData(
DashCap
.Triangle)]
471
public void DashCap_SetValid_GetReturnsExpected(
DashCap
dashCap)
480
[InlineData(
DashCap
.Flat - 1)]
481
[InlineData(
DashCap
.Round - 1)]
482
[InlineData(
DashCap
.Triangle + 1)]
483
public void DashCap_SetInvalid_ThrowsInvalidEnumArgumentException(
DashCap
dashCap)
498
AssertExtensions.Throws<ArgumentException>(null, () => pen.DashCap =
DashCap
.Triangle);
1000
[InlineData(LineCap.Flat, LineCap.Round,
DashCap
.Triangle)]
1001
[InlineData(LineCap.Flat - 1, LineCap.Flat - 1,
DashCap
.Flat - 1)]
1002
[InlineData((LineCap)int.MaxValue, (LineCap)int.MaxValue, (
DashCap
)int.MaxValue)]
1003
public void SetLineCap_Invoke_Success(LineCap startCap, LineCap endCap,
DashCap
dashCap)
1008
if (Enum.IsDefined(typeof(
DashCap
), dashCap))
1010
pen.DashCap =
DashCap
.Round;
1016
Assert.Equal(Enum.IsDefined(typeof(
DashCap
), dashCap) ? dashCap :
DashCap
.Flat, pen.DashCap);
1026
AssertExtensions.Throws<ArgumentException>(null, () => pen.SetLineCap(LineCap.AnchorMask, LineCap.ArrowAnchor,
DashCap
.Flat));
1211
Assert.Equal(
DashCap
.Flat, pen.DashCap);
System\Drawing\SystemPensTest.cs (2)
59
AssertExtensions.Throws<ArgumentException>(null, () => pen.SetLineCap(LineCap.ArrowAnchor, LineCap.Custom,
DashCap
.Round));
67
AssertExtensions.Throws<ArgumentException>(null, () => pen.DashCap =
DashCap
.Flat);