public void GetAllMutations_ForDictionaryOfInValidMutations_ReturnNoElements() { var checker = new MutationCheckerAlwaysFalse(); MutationFinder finder = new MutationFinder(checker); var sourceDict = new List<string> { "cot", "bat" }; List<string> result = finder.GetAllMutations("cat", sourceDict); Assert.That(result.Count, Is.EqualTo(0)); }
public void GetAllMuations_NotEmptyDictionary_MutationCheckerIsCalled() { var checker = new MutationCheckerAlwaysFalse(); MutationFinder finder = new MutationFinder(checker); List<string> result = finder.GetAllMutations("cat", new List<string> { "hello", "eins" }); Assert.That(checker.WasCalled, Is.True); }