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

Merge_BothAddPagesWithUniqueIdsToEmptyDoc_AmbiguousConflict() private method

        public void Merge_BothAddPagesWithUniqueIdsToEmptyDoc_AmbiguousConflict()
        {
            const string common = @"<html><head></head><body></body></html>";
            const string theirs = @"<html><head></head><body><div class='bloom-page' id='1'>one</div></body></html>";
            const string ours = @"<html><head></head><body><div class='bloom-page' id='2'>two</div></body></html>";
            var result = DoMerge(common, ours, theirs);
            Assert.IsTrue(result.resultString.Contains("one"));
            Assert.IsTrue(result.resultString.Contains("two"));
            //nb: the conflict is that we don't have a way of knowing which of these pages should come first
            result.listener.AssertExpectedConflictCount(1);
            result.listener.AssertFirstConflictType<AmbiguousInsertConflict>();
            result.listener.AssertExpectedChangesCount(2);
        }