public void Vowels_ReturnsNumberOfVowels() { VowelCounter vc = new VowelCounter(); string str = "Hello friend"; var count = vc.GetVowelCount(str); Assert.Equal(4, count); }
public void CountingEspecialVowels() { string input = "HÉllo this Is WÓrld Test"; Dictionary <string, int> expected = new Dictionary <string, int>() { { "e", 2 }, { "o", 2 }, { "i", 2 } }; VowelCounter vowelCounter = new VowelCounter(); var actualOutput = vowelCounter.Counter(input); CollectionAssert.AreEqual(expected, actualOutput); }
public void CountingVowelsWithCase() { string input = "HEllo WOrld"; Dictionary <string, int> expected = new Dictionary <string, int>() { { "e", 1 }, { "o", 2 } }; VowelCounter vowelCounter = new VowelCounter(); var actualOutput = vowelCounter.Counter(input); CollectionAssert.AreEqual(expected, actualOutput); }
public VowelCounterTests() { _vowelCounter = new VowelCounter(); }
public void MyTest() { string hello = "hello"; Assert.AreEqual(VowelCounter.countVowels(hello), 2); }