public void DoesNotConvertNumberWithTwoSignsReversed() { const string testWord = "-+10000"; Assert.Throws <InvalidOperationException>(() => StringFiltering.ConvertToInt(testWord)); }
public void GeneratePalindromesGeneratesPalindromePartitionsOfString() { const string testWord = "aabaac"; Assert.Equal(new[] { "a", "a", "b", "a", "a", "c", "aa", "aa", "aba", "aabaa" }, StringFiltering.GeneratePalindromes(testWord)); }
public void GeneratePalindromesThrowsNullStringException() { Assert.Throws <ArgumentNullException>(() => StringFiltering.GeneratePalindromes(null)); }
public void DoesNotConvertNumberWithLetters() { const string testWord = "10000b"; Assert.Throws <InvalidOperationException>(() => StringFiltering.ConvertToInt(testWord)); }
public void CheckVowelsAndConsonantsNumber() { const string testWord = "abcdef"; Assert.Equal((2, 4), StringFiltering.CountVowelsAndConsonants(testWord)); }
public void ConvertsNumberWithWhitespacesAndSign() { const string testWord = "+10 0 0 0"; Assert.Equal(10000, StringFiltering.ConvertToInt(testWord)); }
public void ConvertsNumberWithSign() { const string testWord = "-10 000"; Assert.Equal(-10000, StringFiltering.ConvertToInt(testWord)); }
public void CheckMostOccurenciesCharInString() { const string testWord = "cbeabcca"; Assert.Equal('c', StringFiltering.FindCharacterWithMostOccurences(testWord)); }
public void CheckFirstUniqueCharcaterInStringWithOnlyUniqueCharacters() { const string testWord = "cbae"; Assert.Equal('c', StringFiltering.FindFirstUniqueCharacter(testWord)); }
public void CheckFirstUniqueCharcaterInString() { const string testWord = "cbabcea"; Assert.Equal('e', StringFiltering.FindFirstUniqueCharacter(testWord)); }