BloomTests.Book.BookTests.InsertPageAfter_PageRequiresStylesheetWeAlreadyHave_StylesheetNotAdded C# (CSharp) Method

InsertPageAfter_PageRequiresStylesheetWeAlreadyHave_StylesheetNotAdded() private method

        public void InsertPageAfter_PageRequiresStylesheetWeAlreadyHave_StylesheetNotAdded()
        {
            using(var templateBookFolder = new TemporaryFolder("InsertPageAfter_PageRequiresStylesheetWeAlreadyHave_StylesheetNotAdded"))
            {
                var templatePage = MakeTemplatePageThatHasABookWithStylesheets(templateBookFolder, new string[] {"foo.css"});
                    //it's in the template
                var link = "<link rel='stylesheet' href='foo.css' type='text/css'></link>";
                SetDom("<div class='bloom-page' id='1'></div>", link); //and we already have it in the target book
                var targetBook = CreateBook();
                targetBook.InsertPageAfter(targetBook.GetPages().First(), templatePage);

                Assert.AreEqual(1, targetBook.OurHtmlDom.GetTemplateStyleSheets().Count(name => name == "foo.css"));
            }
        }
BookTests