BloomTests.Book.BookDataTests.UpdateVariablesAndDataDivThroughDOM_VariableIsNull_DataDivForItRemoved C# (CSharp) Method

UpdateVariablesAndDataDivThroughDOM_VariableIsNull_DataDivForItRemoved() private method

        public void UpdateVariablesAndDataDivThroughDOM_VariableIsNull_DataDivForItRemoved()
        {
            var htmlDom = new HtmlDom();
            var data = new BookData(htmlDom, new CollectionSettings(), null);
            data.Set("1","one","en");
            data.Set("1", null, "es");
            data.UpdateVariablesAndDataDivThroughDOM();
            AssertThatXmlIn.Dom(htmlDom.RawDom).HasSpecifiedNumberOfMatchesForXpath("html/body/div/div[@lang='en']",1);
            AssertThatXmlIn.Dom(htmlDom.RawDom).HasSpecifiedNumberOfMatchesForXpath("html/body/div/div[@lang='es']", 0);
        }
BookDataTests