BloomTests.CollectionTab.LibraryModelTests.MakeBloomPack_DoesntIncludeThumbsFile C# (CSharp) Method

MakeBloomPack_DoesntIncludeThumbsFile() private method

private MakeBloomPack_DoesntIncludeThumbsFile ( ) : void
return void
        public void MakeBloomPack_DoesntIncludeThumbsFile()
        {
            var srcBookPath = MakeBook();
            AddThumbsFile(srcBookPath);
            const string excludedFile = "thumbs.db";
            var bloomPackName = Path.Combine(_folder.Path, "testPack.BloomPack");

            // Imitate LibraryModel.MakeBloomPack() without the user interaction
            MakeTestBloomPack(bloomPackName, false);

            // Don't do anything with the zip file except read in the filenames
            var actualFiles = GetActualFilenamesFromZipfile(bloomPackName);

            // +1 for collection-level css file, -1 for thumbs file, so the count is right
            Assert.That(actualFiles.Count, Is.EqualTo(Directory.GetFiles(srcBookPath).Count()));

            foreach (var filePath in actualFiles)
            {
                Assert.IsFalse(Equals(Path.GetFileName(filePath), excludedFile));
            }
        }