diff --git a/exercises/anagram/AnagramTest.cs b/exercises/anagram/AnagramTest.cs index a346c824c0..5c90a72678 100644 --- a/exercises/anagram/AnagramTest.cs +++ b/exercises/anagram/AnagramTest.cs @@ -1,4 +1,4 @@ -// This file was auto-generated based on version 1.4.1 of the canonical data. +// This file was auto-generated based on version 1.5.0 of the canonical data. using Xunit; @@ -47,6 +47,15 @@ public void Detects_three_anagrams() Assert.Equal(expected, sut.FindAnagrams(candidates)); } + [Fact(Skip = "Remove to run test")] + public void Detects_multiple_anagrams_with_different_case() + { + var candidates = new[] { "Eons", "ONES" }; + var sut = new Anagram("nose"); + var expected = new[] { "Eons", "ONES" }; + Assert.Equal(expected, sut.FindAnagrams(candidates)); + } + [Fact(Skip = "Remove to run test")] public void Does_not_detect_non_anagrams_with_identical_checksum() { @@ -105,4 +114,13 @@ public void Words_are_not_anagrams_of_themselves_case_insensitive_() var sut = new Anagram("BANANA"); Assert.Empty(sut.FindAnagrams(candidates)); } + + [Fact(Skip = "Remove to run test")] + public void Words_other_than_themselves_can_be_anagrams() + { + var candidates = new[] { "Listen", "Silent", "LISTEN" }; + var sut = new Anagram("LISTEN"); + var expected = new[] { "Silent" }; + Assert.Equal(expected, sut.FindAnagrams(candidates)); + } } \ No newline at end of file diff --git a/exercises/circular-buffer/CircularBufferTest.cs b/exercises/circular-buffer/CircularBufferTest.cs index f5be48eedd..4e6aff390c 100644 --- a/exercises/circular-buffer/CircularBufferTest.cs +++ b/exercises/circular-buffer/CircularBufferTest.cs @@ -1,4 +1,4 @@ -// This file was auto-generated based on version 1.1.0 of the canonical data. +// This file was auto-generated based on version 1.2.0 of the canonical data. using System; using Xunit; @@ -132,4 +132,18 @@ public void Overwrite_replaces_the_oldest_item_remaining_in_buffer_following_a_r Assert.Equal(4, buffer.Read()); Assert.Equal(5, buffer.Read()); } + + [Fact(Skip = "Remove to run test")] + public void Initial_clear_does_not_affect_wrapping_around() + { + var buffer = new CircularBuffer(capacity: 2); + buffer.Clear(); + buffer.Write(1); + buffer.Write(2); + buffer.Overwrite(3); + buffer.Overwrite(4); + Assert.Equal(3, buffer.Read()); + Assert.Equal(4, buffer.Read()); + Assert.Throws(() => buffer.Read()); + } } \ No newline at end of file