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

BothAddedSameDataDivElement_GetOurs() private method

private BothAddedSameDataDivElement_GetOurs ( ) : void
return void
        public void BothAddedSameDataDivElement_GetOurs()
        {
            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='en'>our version</div>
                                    </div></body></html>";
            const string theirs = @"<html><head></head><body><div id='bloomDataDiv'>
                                        <div data-book='bookTitle' lang='en'>their version</div>
                                    </div></body></html>";

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