Bloom_ChorusTests.cs.HtmlHandlerTests.BothEditDifferentDataDivElements_GetBoth C# (CSharp) Method

BothEditDifferentDataDivElements_GetBoth() private method

private BothEditDifferentDataDivElements_GetBoth ( ) : void
return void
        public void BothEditDifferentDataDivElements_GetBoth()
        {
            const string common = @"<html><head></head><body><div id='bloomDataDiv'></div></body></html>";
            const string ours = @"<html><head></head><body><div id='bloomDataDiv'>
                                        <div data-book='bookTitle' lang='fr'>French Title</div>
                                    </div></body></html>";
            const string theirs = @"<html><head></head><body><div id='bloomDataDiv'>
                                        <div data-book='bookTitle' lang='en'>English Title</div>
                                    </div></body></html>";

            var result = DoMerge(common, ours, theirs);
            result.listener.AssertExpectedConflictCount(0);
            result.listener.AssertExpectedChangesCount(2);
            var dom = XmlHtmlConverter.GetXmlDomFromHtml(result.resultString);
            AssertThatXmlIn.Dom(dom).HasSpecifiedNumberOfMatchesForXpath("//div[@data-book]",2);
        }