Skip to content

Commit

Permalink
Added test to demonstrate issue #2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Kirk committed Dec 17, 2014
1 parent 71208bc commit 733b733
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Windows/Perspex.Direct2D1.RenderTests/Controls/BorderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -345,5 +345,33 @@ public void Border_Bottom_Aligns_Content()
this.RenderToFile(target);
this.CompareImages();
}

[TestMethod]
public void Border_Nested_Rotate()
{
Decorator target = new Decorator
{
Padding = new Thickness(8),
Width = 200,
Height = 200,
Content = new Border
{
Background = Brushes.Coral,
Width = 100,
Height = 100,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
Content = new Border
{
Margin = new Thickness(25),
Background = Brushes.Chocolate,
},
RenderTransform = new RotateTransform(45),
}
};

this.RenderToFile(target);
this.CompareImages();
}
}
}

0 comments on commit 733b733

Please sign in to comment.