public void TestAnagramResultTrue() { // Arrange var anagramFunc = new Testing.Anagram.Anagram(); // Act bool outPut = anagramFunc.IsAnagram("west", "stew"); // Assert Assert.True(outPut); }
public void TestAnagramresultFalse() { //Arrange var anagramFunc = new Testing.Anagram.Anagram(); // Act bool outPut = anagramFunc.IsAnagram("expect", "respect"); // Assert Assert.False(outPut); }
static void Main(string[] args) { Testing.Anagram.Anagram anagram = new Testing.Anagram.Anagram(); Console.WriteLine(anagram.IsAnagram(anagram.UserWrites(), anagram.UserWrites()) ? "anagrams" : "are not anagrams"); }
public void TestAnagramMultipleResultsFalse(string str1, string str2) { var anagramFunc = new Testing.Anagram.Anagram(); Assert.False(anagramFunc.IsAnagram(str1, str2)); }