Ejemplo n.º 1
0
 public void Count_numbers()
 {
     unchecked {
         long wordValue = (long)137 * (long)139 * (long)149 * (long)151 * (long)157 * (long)163 * (long)167 * (long)173 * (long)179 * (long)181;
         Assert.AreEqual(wordValue, CharactersCounterByPrimeNumbers.Count("1234567890"));
     }
 }
Ejemplo n.º 2
0
 public void Count_Case_Insensitive()
 {
     unchecked {
         long wordValue = (long)19 * (long)23 * (long)17 * (long)23 * (long)59 * (long)13 * (long)23 * (long)79;
         Assert.AreEqual(wordValue, CharactersCounterByPrimeNumbers.Count("DECEMBER"));
     }
 }
Ejemplo n.º 3
0
 public void Count_Set_3()
 {
     unchecked {
         long wordValue = (long)19 * (long)23 * (long)17 * (long)23 * (long)59 * (long)13 * (long)23 * (long)79;
         Assert.AreEqual(wordValue, CharactersCounterByPrimeNumbers.Count("December"));
     }
 }
Ejemplo n.º 4
0
 public void Count_single_quote()
 {
     Assert.AreEqual(131, CharactersCounterByPrimeNumbers.Count("\'"));
 }
Ejemplo n.º 5
0
 public void Count_hyphen()
 {
     Assert.AreEqual(127, CharactersCounterByPrimeNumbers.Count("-"));
 }
Ejemplo n.º 6
0
 public void Count_Set_2()
 {
     Assert.AreEqual(11 * 13 * 17 * 19, CharactersCounterByPrimeNumbers.Count("ABCD"));
 }