private static void StringTest() { StringAnagram a = new StringAnagram(); var result = a.IsAnagram("post", "stop"); WriteLine("Is Anagram: " + result); }
public void Test1() { var algo = new StringAnagram(); var result = algo.MakeAnagram("abc", "cba"); Assert.Equal(0, result); result = algo.MakeAnagram("cde", "abc"); Assert.Equal(4, result); }