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

FixBookIdAndLineageIfNeeded_WithPageTemplateSourceBasicBook_OnBookThatHasJsonLineage_DoesNotSetLineage() private method

        public void FixBookIdAndLineageIfNeeded_WithPageTemplateSourceBasicBook_OnBookThatHasJsonLineage_DoesNotSetLineage()
        {
            _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 = "something current";
            _metadata.Id = "";
            var book = CreateBook();

            // 0 because it should NOT make the change.
            AssertThatXmlIn.Dom(book.RawDom).HasSpecifiedNumberOfMatchesForXpath("//meta[@name='bloomBookLineage' and @content='" + Bloom.Book.Book.kIdOfBasicBook + "']", 0);
            Assert.That(_metadata.BookLineage, Is.EqualTo("something current"));
        }
BookTests