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

AddClassIfMissing_AlreadyThere_LeavesAlone() private method

private AddClassIfMissing_AlreadyThere_LeavesAlone ( ) : void
return void
        public void AddClassIfMissing_AlreadyThere_LeavesAlone()
        {
            var dom = new XmlDocument();
            dom.LoadXml(@"<div class='one two three'/>");
            HtmlDom.AddClassIfMissing((XmlElement) dom.FirstChild, "two");
            AssertThatXmlIn.Dom(dom).HasSpecifiedNumberOfMatchesForXpath("div[@class='one two three']",1);
        }
HtmlDomTests