Skip to content

Commit

Permalink
Add failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gillibald committed Sep 30, 2021
1 parent d0401bd commit 5b632ff
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/Avalonia.RenderTests/OpacityMaskTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,29 @@ public async Task RenderTansform_Applies_To_Opacity_Mask()
await RenderToFile(target);
CompareImages();
}

[Fact]
public async Task VisualBrush_Should_Work_As_OpacityMask()
{
var target = new Rectangle
{
Width = 100,
Height = 100,
Fill = Brushes.Red,
OpacityMask = new VisualBrush
{
Visual = new Ellipse
{
Width = 100,
Height = 100,
Fill = Brushes.Black
}
}
};

await RenderToFile(target);

CompareImages();
}
}
}

0 comments on commit 5b632ff

Please sign in to comment.