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);
}