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

FixBookIdAndLineageIfNeeded_WithPageTemplateSourceBasicBook_SetsMissingLineageToBasicBook() private method

        public void FixBookIdAndLineageIfNeeded_WithPageTemplateSourceBasicBook_SetsMissingLineageToBasicBook()
        {
            _bookDom = new HtmlDom(
                @"<html>
                <head>
                    <meta content='text/html; charset=utf-8' http-equiv='content-type' />
                    <meta name='pageTemplateSource' content='Basic Book' />
                    <meta name='bloomBookId' content='MyId' />
                    <title>Test Shell</title>
                    <link rel='stylesheet' href='Basic Book.css' type='text/css' />
                    <link rel='stylesheet' href='../../previewMode.css' type='text/css' />;
                </head>
                <body>
                    <div class='bloom-page'>
                    </div>
                </body></html>");

            _metadata.BookLineage = ""; // not sure if these could be left from another test
            _metadata.Id = "";
            var book = CreateBook();

            AssertThatXmlIn.Dom(book.RawDom).HasSpecifiedNumberOfMatchesForXpath("//meta[@name='bloomBookLineage' and @content='" + Bloom.Book.Book.kIdOfBasicBook + "']", 1);
            //Assert.That(_metadata.bloom.bookLineage, Is.EqualTo(Bloom.Book.Book.kIdOfBasicBook));
        }
BookTests