BloomTests.Book.HtmlDomTests.BaseForRelativePaths_HasExistingBase_Removes C# (CSharp) Method

BaseForRelativePaths_HasExistingBase_Removes() private method

private BaseForRelativePaths_HasExistingBase_Removes ( ) : void
return void
        public void BaseForRelativePaths_HasExistingBase_Removes()
        {
            var dom = new HtmlDom(
                          @"<html><head><base href='original'/></head></html>");
            AssertThatXmlIn.Dom(dom.RawDom).HasSpecifiedNumberOfMatchesForXpath("html/head/base[@href='original']", 1);
            dom.BaseForRelativePaths = "new";
            AssertThatXmlIn.Dom(dom.RawDom).HasSpecifiedNumberOfMatchesForXpath("html/head/base", 0);
            Assert.AreEqual("new", dom.BaseForRelativePaths);
        }
HtmlDomTests