LediReader / EpubReader /Source /VersOne.Epub.Test /Unit /Schema /Ncx /Epub2NcxNavigationLabelTests.cs
| using VersOne.Epub.Schema; | |
| namespace VersOne.Epub.Test.Unit.Schema.Ncx | |
| { | |
| public class Epub2NcxNavigationLabelTests | |
| { | |
| private const string TEXT = "Test text"; | |
| [] | |
| public void ConstructorWithNonNullParametersTest() | |
| { | |
| Epub2NcxNavigationLabel epub2NcxNavigationLabel = new(TEXT); | |
| Assert.Equal(TEXT, epub2NcxNavigationLabel.Text); | |
| } | |
| [] | |
| public void ConstructorWithNullTextTest() | |
| { | |
| Assert.Throws<ArgumentNullException>(() => new Epub2NcxNavigationLabel(null!)); | |
| } | |
| [] | |
| public void ToStringTest() | |
| { | |
| Epub2NcxNavigationLabel epub2NcxNavigationLabel = new | |
| ( | |
| text: TEXT | |
| ); | |
| Assert.Equal(TEXT, epub2NcxNavigationLabel.ToString()); | |
| } | |
| } | |
| } | |