|
|
|
@ -7,13 +7,13 @@ namespace Avalonia.Visuals.UnitTests.Media |
|
|
|
public class TypefaceTests |
|
|
|
{ |
|
|
|
[Fact] |
|
|
|
public void Exception_Should_Be_Thrown_If_FontSize_0() |
|
|
|
public void Exception_Should_Be_Thrown_If_FontSize_LessThanEqualTo_0() |
|
|
|
{ |
|
|
|
Assert.Throws<ArgumentException>(() => new Typeface("foo", 0)); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public void Exception_Should_Be_Thrown_If_FontWeight_0() |
|
|
|
public void Exception_Should_Be_Thrown_If_FontWeight_LessThanEqualTo_0() |
|
|
|
{ |
|
|
|
Assert.Throws<ArgumentException>(() => new Typeface("foo", 12, weight: 0)); |
|
|
|
} |
|
|
|
|