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.
 
 
 

51 lines
1.1 KiB

using System.Threading.Tasks;
using Avalonia.Controls;
using Avalonia.Media;
using Xunit;
#pragma warning disable CS0649
#if AVALONIA_SKIA
namespace Avalonia.Skia.RenderTests;
public class BoxShadowTests : TestBase
{
public BoxShadowTests() : base(@"Media\BoxShadow")
{
}
[Fact]
public async Task BoxShadowShouldBeRenderedEvenWithNullBrushAndPen()
{
var target = new Border
{
Width = 200,
Height = 200,
Background = null,
Child = new Border()
{
Background = null,
Margin = new Thickness(40),
BoxShadow = new BoxShadows(new BoxShadow
{
Blur = 0,
Color = Colors.Blue,
OffsetX = 10,
OffsetY = 15,
Spread = 0
}),
Child = new Border
{
Background = Brushes.Red
}
}
};
await RenderToFile(target);
CompareImages();
}
}
#endif