A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

40 lines
1.1 KiB

// -----------------------------------------------------------------------
// <copyright file="EllipseTests.cs" company="Steven Kirk">
// Copyright 2014 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Direct2D1.RenderTests.Shapes
{
using Perspex.Controls;
using Perspex.Controls.Shapes;
using Perspex.Media;
using Xunit;
public class EllipseTests : TestBase
{
public EllipseTests()
: base(@"Shapes\Ellipse")
{
}
[Fact]
public void Circle_1px_Stroke()
{
Decorator target = new Decorator
{
Padding = new Thickness(8),
Width = 200,
Height = 200,
Child = new Ellipse
{
Stroke = Brushes.Black,
StrokeThickness = 1,
}
};
this.RenderToFile(target);
this.CompareImages();
}
}
}