public void Remove_AddWordAndRemoveItAgain_AnagramRestSame(string anagram, string word, string expectedAnagramRest) { var anagramMatchTracker = new AnagramMatchTracker(anagram); anagramMatchTracker.Add(word); anagramMatchTracker.Remove(); Assert.AreEqual(expectedAnagramRest, anagramMatchTracker.AnagramRest); }
public void Remove_FullAnagramRest_InvalidOperationException() { var anagramMatchTracker = new AnagramMatchTracker("anagram"); Assert.Throws<InvalidOperationException>(() => anagramMatchTracker.Remove()); }