| 12345678910111213141516171819202122232425262728 |
- using System;
- using Avalonia.Media;
- using Xunit;
- namespace Avalonia.Visuals.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));
- }
- }
- }
|