public void RemoveCoverTest() { var epub1 = EpubReader.Read(@"Samples/epub-assorted/Inversions - Iain M. Banks.epub"); var writer = new EpubWriter(EpubWriter.MakeCopy(epub1)); writer.RemoveCover(); var epub2 = WriteAndRead(writer); Assert.IsNotNull(epub1.CoverImage); Assert.IsNull(epub2.CoverImage); Assert.AreEqual(epub1.Resources.Images.Count - 1, epub2.Resources.Images.Count); }
public void RemoveCoverTest() { var epub1 = EpubReader.Read(@"Samples/epub-assorted/afrique_du_sud_2016_carnet_petit_fute.epub", null); var writer = new EpubWriter(EpubWriter.MakeCopy(epub1)); writer.RemoveCover(); var epub2 = WriteAndRead(writer); Assert.IsNotNull(epub1.CoverImage); Assert.IsNull(epub2.CoverImage); Assert.AreEqual(epub1.Resources.Images.Count - 1, epub2.Resources.Images.Count); }