BloomTests.Book.PageMigrationTests.BringPageUpToDateWithMigration_WasA4Landscape_StaysA4Landscape C# (CSharp) Method

BringPageUpToDateWithMigration_WasA4Landscape_StaysA4Landscape() private method

        public void BringPageUpToDateWithMigration_WasA4Landscape_StaysA4Landscape()
        {
            SetDom(@"<div class='bloom-page A4Landscape' data-pagelineage='5dcd48df-e9ab-4a07-afd4-6a24d0398385' id='thePage'>
               <div class='marginBox'>
                    <div class='bloom-imageContainer bloom-leadingElement'><img src='erjwx3bl.q3c.png'></img></div>
                </div>
            </div>
            ");
            var book = CreateBook();
            var dom = book.RawDom;
            var page = (XmlElement)dom.SafeSelectNodes("//div[@id='thePage']")[0];
            book.BringPageUpToDate(page);

            var updatedPage = (XmlElement)dom.SafeSelectNodes("//div[@id='thePage']")[0];
            Assert.IsTrue(updatedPage.OuterXml.Contains("A4Landscape"), "the old page was in A4Landscape, so the migrated page should be, too.");
            Assert.IsFalse(updatedPage.OuterXml.Contains("A5Portrait"), "the old page was in A4Landscape, so the migrated page should not have some other size/orientation.");
        }