diff --git a/Source/VersOne.Epub.Test/Unit/Readers/PackageReaderTests.cs b/Source/VersOne.Epub.Test/Unit/Readers/PackageReaderTests.cs
index 7961101..04e58b2 100644
--- a/Source/VersOne.Epub.Test/Unit/Readers/PackageReaderTests.cs
+++ b/Source/VersOne.Epub.Test/Unit/Readers/PackageReaderTests.cs
@@ -110,7 +110,7 @@ public class PackageReaderTests
-
+
@@ -122,6 +122,202 @@ public class PackageReaderTests
""";
+ private const string OPF_FILE_WITH_NON_SUPPORTED_EPUB_VERSION = $"""
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITHOUT_PACKAGE = $"""
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITHOUT_METADATA = $"""
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITHOUT_MANIFEST = $"""
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITHOUT_SPINE = $"""
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITHOUT_ID_IN_MANIFEST_ITEM = $"""
+
+
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITH_EMPTY_ID_IN_MANIFEST_ITEM = $"""
+
+
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITHOUT_HREF_IN_MANIFEST_ITEM = $"""
+
+
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITH_EMPTY_HREF_IN_MANIFEST_ITEM = $"""
+
+
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITHOUT_MEDIA_TYPE_IN_MANIFEST_ITEM = $"""
+
+
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITH_EMPTY_MEDIA_TYPE_IN_MANIFEST_ITEM = $"""
+
+
+
+
+
+
+
+
+ """;
+
+ private const string EPUB2_OPF_FILE_WITHOUT_SPINE_TOC = $"""
+
+
+
+
+
+
+ """;
+
+ private const string EPUB2_OPF_FILE_WITH_EMPTY_SPINE_TOC = $"""
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITHOUT_IDREF_IN_SPINE_ITEMREF = $"""
+
+
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITH_EMPTY_IDREF_IN_SPINE_ITEMREF = $"""
+
+
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITHOUT_TYPE_IN_GUIDE_REFERENCE = $"""
+
+
+
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITH_EMPTY_TYPE_IN_GUIDE_REFERENCE = $"""
+
+
+
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITHOUT_HREF_IN_GUIDE_REFERENCE = $"""
+
+
+
+
+
+
+
+
+
+ """;
+
+ private const string OPF_FILE_WITH_EMPTY_HREF_IN_GUIDE_REFERENCE = $"""
+
+
+
+
+
+
+
+
+
+ """;
+
private static EpubMetadata EmptyMetadata =>
new()
{
@@ -551,6 +747,16 @@ private static EpubPackage FullPackage
}
}
+ private static EpubPackage Epub2PackageWithoutSpineToc =>
+ new()
+ {
+ EpubVersion = EpubVersion.EPUB_2,
+ Metadata = EmptyMetadata,
+ Manifest = new EpubManifest(),
+ Spine = new EpubSpine()
+ };
+
+
public static IEnumerable