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.
 
 
 

21 lines
466 B

using System;
using Avalonia.Media;
using Xunit;
namespace Avalonia.Visuals.UnitTests.Media
{
public class SolidColorBrushTests
{
[Fact]
public void Changing_Color_Raises_Invalidated()
{
var target = new SolidColorBrush(Colors.Red);
var raised = false;
target.Invalidated += (s, e) => raised = true;
target.Color = Colors.Green;
Assert.True(raised);
}
}
}