public void IsValidAnagramTestWithStringsOfDifferentLength() { IsAnagram IA = new IsAnagram(); IA.IsValidAnagram("rat", "cats").Should().Be(false); }
public void IsValidAnagramTestWithNullInput() { IsAnagram IA = new IsAnagram(); Action action=()=>IA.IsValidAnagram("rat", null); action.ShouldThrow<ArgumentException>(); }
public void IsValidAnagramTestWithequalStrings() { IsAnagram IA = new IsAnagram(); IA.IsValidAnagram("rat", "rat").Should().Be(true); }
public void IsValidAnagramTestWithEmptyInput() { IsAnagram IA = new IsAnagram(); Action action = () => IA.IsValidAnagram(string.Empty, string.Empty); action.ShouldThrow<ArgumentException>(); }
public void IsValidAnagramTest() { IsAnagram IA=new IsAnagram(); IA.IsValidAnagram("anagram", "nagaram").Should().Be(true); }
public void IsValidAnagramNegativeTest() { IsAnagram IA = new IsAnagram(); IA.IsValidAnagram("rat", "cat").Should().Be(false); }