2 changed files with 38 additions and 1 deletions
@ -0,0 +1,28 @@ |
|||
using System; |
|||
using Avalonia.Media; |
|||
using Xunit; |
|||
|
|||
namespace Avalonia.SceneGraph.UnitTests.Media |
|||
{ |
|||
public class FormattedTextTests |
|||
{ |
|||
[Fact] |
|||
public void Exception_Should_Be_Thrown_If_FontSize_0() |
|||
{ |
|||
Assert.Throws<ArgumentException>(() => new FormattedText( |
|||
"foo", |
|||
"Ariel", |
|||
0)); |
|||
} |
|||
|
|||
[Fact] |
|||
public void Exception_Should_Be_Thrown_If_FontWeight_0() |
|||
{ |
|||
Assert.Throws<ArgumentException>(() => new FormattedText( |
|||
"foo", |
|||
"Ariel", |
|||
12, |
|||
fontWeight: 0)); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue