Exemple #1
0
 public void Test5()
 {
     try {
         Solution.GetMostOccurringCharacter("      ");
         Assert.Fail();
     }
     catch
     {
         Assert.Pass();
     }
 }
Exemple #2
0
 public void Test1()
 {
     Assert.AreEqual(Solution.GetMostOccurringCharacter("Hello World"), 'l');
 }
Exemple #3
0
 public void Test4()
 {
     Assert.AreEqual(Solution.GetMostOccurringCharacter("abbbccceeddddeee"), 'e');
 }
Exemple #4
0
 public void Test2()
 {
     Assert.AreEqual(Solution.GetMostOccurringCharacter("Hollow World"), 'o');
 }