Skip to content

Commit

Permalink
Add replace tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandPheasant committed Nov 16, 2023
1 parent dbd6fd0 commit 53feeeb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/DynamicData.Tests/List/MergeManyChangeSetsFixture.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Linq;
using FluentAssertions;

using Xunit;
Expand Down Expand Up @@ -39,5 +40,16 @@ public void MergeManyShouldWork()
// Fails below
d.Count.Should().Be(2);
new[] { 1, 2 }.Should().BeEquivalentTo(d.Items);

a.ReplaceAt(0,100);
new[] { 2, 100 }.Should().BeEquivalentTo(d.Items);


var f = new SourceList<int>();
f.AddRange(Enumerable.Range(10,5));
parent.ReplaceAt(2,f);


new[] { 2, 100, 10,11,12,13,14 }.Should().BeEquivalentTo(d.Items);
}
}

0 comments on commit 53feeeb

Please sign in to comment.