| 123456789101112131415161718192021 |
- using System;
- using Avalonia.Media;
- using Xunit;
- namespace Avalonia.Visuals.UnitTests.Media
- {
- public class TypefaceTests
- {
- [Fact]
- public void Exception_Should_Be_Thrown_If_FontSize_0()
- {
- Assert.Throws<ArgumentException>(() => new Typeface("foo", 0));
- }
- [Fact]
- public void Exception_Should_Be_Thrown_If_FontWeight_0()
- {
- Assert.Throws<ArgumentException>(() => new Typeface("foo", 12, weight: 0));
- }
- }
- }
|