public void IsUnique(string str, bool expected) { QuestionsOnStrings obj = new QuestionsOnStrings(); var result = obj.IsPalindrome(str.ToLower()); Assert.AreEqual(result, expected); }
public void CountNumberOfWordsInStringTest(string str, int expected) { QuestionsOnStrings obj = new QuestionsOnStrings(); var result = obj.CountNumberOfWordsInString(str); Assert.AreEqual(result, expected); }
public void DetermineAnagramsOfTwoWords(string word1, string word2, bool expected) { QuestionsOnStrings obj = new QuestionsOnStrings(); var result = obj.DetermineAnagramsOfTwoWords(word1, word2); Assert.AreEqual(result, expected); }
public void ReverseStrinTest(string word, string expected) { QuestionsOnStrings obj = new QuestionsOnStrings(); var result = obj.ReverseString(word); Assert.AreEqual(result.ToLower(), expected.ToLower()); }
public void RemoveDuplicateCharsTest(string input, string expected) { QuestionsOnStrings obj = new QuestionsOnStrings(); var result = obj.RemoveDuplicateChars(input); Assert.AreEqual(result, expected); }