BloomTests.Chorus.BookMergingTests.Merge_EachAddedItemToDatDiv C# (CSharp) Method

Merge_EachAddedItemToDatDiv() private method

private Merge_EachAddedItemToDatDiv ( ) : void
return void
        public void Merge_EachAddedItemToDatDiv()
        {
            TestBodyMerge(
                @"  <div id='bloomDataDiv'>
                                        <div data-book='coverImage'>theCover.png</div>
                                    </div>",
                @"<div id='bloomDataDiv'>
                                         <div data-book='ourNew'>our new thing</div>
                                        <div data-book='coverImage'>theCover.png</div>
                                    </div>",
                @"<div id='bloomDataDiv'>
                                        <div data-book='coverImage'>theCover.png</div>
                                         <div data-book='theirNew'>their new thing</div>
                                    </div>",
                (path) =>
                    {
                        AssertThatXmlIn.HtmlFile(path).HasSpecifiedNumberOfMatchesForXpath("html/body/div[@id='bloomDataDiv']", 1);
                        AssertThatXmlIn.HtmlFile(path).HasSpecifiedNumberOfMatchesForXpath("html/body/div/div", 3);
                        AssertThatXmlIn.HtmlFile(path).HasSpecifiedNumberOfMatchesForXpath("html/body/div/div[@data-book='coverImage']", 1);
                        AssertThatXmlIn.HtmlFile(path).HasSpecifiedNumberOfMatchesForXpath("html/body/div/div[@data-book='theirNew']", 1);
                        AssertThatXmlIn.HtmlFile(path).HasSpecifiedNumberOfMatchesForXpath("html/body/div/div[@data-book='ourNew']", 1);
                    },
                (listener) => {  Assert.AreEqual(0, listener.Conflicts.Count);});
        }