LediReader
/
EpubReader
/Source
/VersOne.Epub.Test
/Unit
/Schema
/Opf
/Metadata
/EpubMetadataLinkPropertyTests.cs
| using VersOne.Epub.Schema; | |
| namespace VersOne.Epub.Test.Unit.Schema.Opf.Metadata | |
| { | |
| public class EpubMetadataLinkPropertyTests | |
| { | |
| [] | |
| public void ParsePropertyListTest() | |
| { | |
| string stringValue = "onix test-unknown-property"; | |
| List<EpubMetadataLinkProperty> expectedPropertyList = new() | |
| { | |
| EpubMetadataLinkProperty.ONIX, | |
| EpubMetadataLinkProperty.UNKNOWN | |
| }; | |
| List<EpubMetadataLinkProperty> actualPropertyList = EpubMetadataLinkPropertyParser.ParsePropertyList(stringValue); | |
| Assert.Equal(expectedPropertyList, actualPropertyList); | |
| } | |
| [] | |
| public void ParsePropertyListFromEmptyStringTest() | |
| { | |
| string stringValue = " "; | |
| List<EpubMetadataLinkProperty> expectedPropertyList = new(); | |
| List<EpubMetadataLinkProperty> actualPropertyList = EpubMetadataLinkPropertyParser.ParsePropertyList(stringValue); | |
| Assert.Equal(expectedPropertyList, actualPropertyList); | |
| } | |
| } | |
| } | |