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

DontChangeBigWordsStyleIfUsedAndPresent() private method

private DontChangeBigWordsStyleIfUsedAndPresent ( ) : void
return void
        public void DontChangeBigWordsStyleIfUsedAndPresent()
        {
            var dom = CreateAndMigrateBigWordsPage(headElt =>
            {
                var userStyles = headElt.OwnerDocument.CreateElement("style");
                userStyles.SetAttribute("type", "text/css");
                userStyles.SetAttribute("title", "userModifiedStyles");
                userStyles.InnerText = ".BigWords-style { font-size: 50pt !important; text-align: center !important; }";
                headElt.AppendChild(userStyles);
            });

            AssertThatXmlIn.Dom(dom).HasAtLeastOneMatchForXpath("html/head/style[@type='text/css' and @title='userModifiedStyles' and text()='.BigWords-style { font-size: 50pt !important; text-align: center !important; }']");
            AssertThatXmlIn.Dom(dom).HasNoMatchForXpath("html/head/style[@type='text/css' and @title='userModifiedStyles' and text()='.BigWords-style { font-size: 45pt !important; text-align: center !important; }']");
        }