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.
 
 
 

18 lines
427 B

using System.Linq;
using Avalonia.Media;
using Xunit;
namespace Avalonia.Visuals.UnitTests.Media
{
public class UnicodeRangeTests
{
[Fact]
public void Should_Parse_Segments()
{
var range = UnicodeRange.Parse("U+0, U+1, U+2, U+3");
Assert.NotNull(range.Segments);
Assert.Equal(new[] { 0, 1, 2, 3 }, range.Segments.Select(x => x.Start));
}
}
}