File size: 1,003 Bytes
fab29d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace VersOne.Epub.Test.Comparers
{
    internal static class EpubBookComparer
    {
        public static void CompareEpubBooks(EpubBook expected, EpubBook actual)
        {
            Assert.NotNull(actual);
            Assert.Equal(expected.FilePath, actual.FilePath);
            Assert.Equal(expected.Title, actual.Title);
            Assert.Equal(expected.Author, actual.Author);
            Assert.Equal(expected.AuthorList, actual.AuthorList);
            Assert.Equal(expected.Description, actual.Description);
            Assert.Equal(expected.CoverImage, actual.CoverImage);
            EpubContentComparer.CompareEpubLocalTextContentFileLists(expected.ReadingOrder, actual.ReadingOrder);
            EpubNavigationItemComparer.CompareNavigationItemLists(expected.Navigation, actual.Navigation);
            EpubSchemaComparer.CompareEpubSchemas(expected.Schema, actual.Schema);
            EpubContentComparer.CompareEpubContents(expected.Content, actual.Content);
        }
    }
}