csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
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.
39 lines
1.1 KiB
39 lines
1.1 KiB
// -----------------------------------------------------------------------
|
|
// <copyright file="BorderTests.cs" company="Steven Kirk">
|
|
// Copyright 2014 MIT Licence. See licence.md for more information.
|
|
// </copyright>
|
|
// -----------------------------------------------------------------------
|
|
|
|
namespace Perspex.Direct2D1.RenderTests.Controls
|
|
{
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using Perspex.Controls;
|
|
using Perspex.Media;
|
|
|
|
[TestClass]
|
|
public class BorderTests : TestBase
|
|
{
|
|
public BorderTests()
|
|
: base(@"Controls\Border")
|
|
{
|
|
}
|
|
|
|
[TestMethod]
|
|
public void Border_1px_Border()
|
|
{
|
|
Decorator target = new Decorator
|
|
{
|
|
Padding = new Thickness(8),
|
|
Width = 200,
|
|
Height = 200,
|
|
Content = new Border
|
|
{
|
|
BorderBrush = Brushes.Black,
|
|
BorderThickness = 1,
|
|
}
|
|
};
|
|
|
|
this.RenderToFile(target);
|
|
}
|
|
}
|
|
}
|
|
|