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.
 
 
 

34 lines
737 B

using Avalonia.Media;
using Xunit;
namespace Avalonia.Visuals.UnitTests.Media
{
public class GeometryGroupTests
{
[Fact]
public void Children_Should_Have_Initial_Collection()
{
var target = new GeometryGroup();
Assert.NotNull(target.Children);
}
[Fact]
public void Children_Change_Should_Raise_Changed()
{
var target = new GeometryGroup();
var children = new GeometryCollection();
target.Children = children;
var isCalled = false;
target.Changed += (s, e) => isCalled = true;
children.Add(new StreamGeometry());
Assert.True(isCalled);
}
}
}