public void CheckIfResultingPalindromesWorksCorrectly()
 {
     LinqHomework.StringLinqHomework text = new LinqHomework.StringLinqHomework("aabaac");
     string[] result = { "a", "a", "b", "a", "a", "c", "aa", "aa", "aba", "aabaa" };
     Assert.Equal(result, text.ResultingPalindromes());
 }
 public void CheckIfTopOfMostUsedWords()
 {
     LinqHomework.StringLinqHomework text = new LinqHomework.StringLinqHomework("ana are mere pe care le are ana avute de ana dar neavute de altcineva care le are in afara de ana");
     string[] result = { "ana", "are", "de", "care", "le" };
     Assert.Equal(result.ToList(), text.TopOfMostUsedWords(5));
 }
 public void CheckIfFindCharacterWhoAppearTheMostWorksCorrectly2()
 {
     LinqHomework.StringLinqHomework text = new LinqHomework.StringLinqHomework("ana are banane cu capsuni roz");
     Assert.Equal('a', text.FindCharacterWhoAppearTheMost());
 }
 public void CheckIfChangeFromStringToIntWorksCorrectly2()
 {
     LinqHomework.StringLinqHomework text = new LinqHomework.StringLinqHomework("-118932");
     Assert.Equal(-118932, text.ChangeFromStringToInt());
 }
 public void CheckIfFirstCharacterThatDoesntRepeatWorksCorrectly1()
 {
     LinqHomework.StringLinqHomework text = new LinqHomework.StringLinqHomework("ana are banane cu capsuni roz");
     Assert.Equal('b', text.FirstCharacterThatDoesntRepeat());
 }
 public void CheckIfNumberOfConsonantsAndVowelsInAStringWorksCorrectly2()
 {
     LinqHomework.StringLinqHomework text = new LinqHomework.StringLinqHomework("abcdefghijklmnopqrstuvwxyz");
     Assert.Equal((21, 5), text.NumberOfConsonantsAndVowelsInAString());
 }
 public void CheckIfNumberOfConsonantsAndVowelsInAStringWorksCorrectly1()
 {
     LinqHomework.StringLinqHomework text = new LinqHomework.StringLinqHomework("Ana are mere");
     Assert.Equal((4, 6), text.NumberOfConsonantsAndVowelsInAString());
 }