public void validate_epub_file_without_images_through_idpf_validator() { _chapter.AddPage(_page); _epub.ChapterList.AddChapter(_chapter); _fileCreator.Create(_path, _filename); bool result = new IdpfValidator(_fullPath).Validate(); File.Delete(_fullPath); Assert.True(result); }
public void validate_epub_file_with_images_through_idpf_validator() { var page2 = Page.Create("this is a image page test. <img src=\"../images/kindle.jpg\" />", new List <Image>() { Image.LoadImage(_path + @$ "resources{Basics.DirectorySeparator}kindle.jpg").Result }); _chapter.AddPage(page2); _epub.ChapterList.AddChapter(_chapter); _fileCreator.Create(_path, _filename); bool result = new IdpfValidator(_fullPath).Validate(); File.Delete(_fullPath); Assert.True(result); }