|
|
|
@ -45,20 +45,20 @@ namespace Avalonia.Visuals.UnitTests.Media |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public void Equality_Is_Implemented_Between_Mutable_And_Immutable_Pens() |
|
|
|
public void Equality_Is_Implemented_Between_Immutable_And_Mmutable_Pens() |
|
|
|
{ |
|
|
|
var brush = new SolidColorBrush(Colors.Red); |
|
|
|
var target1 = new Pen( |
|
|
|
var target1 = new ImmutablePen( |
|
|
|
brush: brush, |
|
|
|
thickness: 2, |
|
|
|
dashStyle: DashStyle.Dash, |
|
|
|
dashStyle: (ImmutableDashStyle)DashStyle.Dash, |
|
|
|
lineCap: PenLineCap.Round, |
|
|
|
lineJoin: PenLineJoin.Round, |
|
|
|
miterLimit: 21); |
|
|
|
var target2 = new ImmutablePen( |
|
|
|
var target2 = new Pen( |
|
|
|
brush: brush, |
|
|
|
thickness: 2, |
|
|
|
dashStyle: (ImmutableDashStyle)DashStyle.Dash, |
|
|
|
dashStyle: DashStyle.Dash, |
|
|
|
lineCap: PenLineCap.Round, |
|
|
|
lineJoin: PenLineJoin.Round, |
|
|
|
miterLimit: 21); |
|
|
|
@ -70,17 +70,17 @@ namespace Avalonia.Visuals.UnitTests.Media |
|
|
|
public void Equality_Is_Implemented_Between_Mutable_And_Immutable_DashStyles() |
|
|
|
{ |
|
|
|
var brush = new SolidColorBrush(Colors.Red); |
|
|
|
var target1 = new Pen( |
|
|
|
var target1 = new ImmutablePen( |
|
|
|
brush: brush, |
|
|
|
thickness: 2, |
|
|
|
dashStyle: new DashStyle(new[] { 0.1, 0.2 }, 5), |
|
|
|
dashStyle: new ImmutableDashStyle(new[] { 0.1, 0.2 }, 5), |
|
|
|
lineCap: PenLineCap.Round, |
|
|
|
lineJoin: PenLineJoin.Round, |
|
|
|
miterLimit: 21); |
|
|
|
var target2 = new ImmutablePen( |
|
|
|
var target2 = new Pen( |
|
|
|
brush: brush, |
|
|
|
thickness: 2, |
|
|
|
dashStyle: new ImmutableDashStyle(new[] { 0.1, 0.2 }, 5), |
|
|
|
dashStyle: new DashStyle(new[] { 0.1, 0.2 }, 5), |
|
|
|
lineCap: PenLineCap.Round, |
|
|
|
lineJoin: PenLineJoin.Round, |
|
|
|
miterLimit: 21); |
|
|
|
|