Skip to content

Commit

Permalink
List6 - AddFive
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-dot-net committed Sep 9, 2023
1 parent 9392003 commit 6c50d31
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cs/Digits/tests/List6Test.cs
Expand Up @@ -62,4 +62,23 @@ public void AddFour()
list[2].Should().Be(75);
list[3].Should().Be(100);
}

[Fact]
public void AddFive()
{
List6 list = default;

list = list.Add(30);
list = list.Add(50);
list = list.Add(70);
list = list.Add(90);
list = list.Add(110);

list.Count.Should().Be(5);
list[0].Should().Be(30);
list[1].Should().Be(50);
list[2].Should().Be(70);
list[3].Should().Be(90);
list[4].Should().Be(110);
}
}

0 comments on commit 6c50d31

Please sign in to comment.