Exemplo n.º 1
0
 public void Zero_Nine_Five_Two()
 {
     Assert.AreEqual("four", Kata1.AverageString("zero nine five two"));
     Assert.AreEqual("three", Kata1.AverageString("one two three four five"));
     Assert.AreEqual("four", Kata1.AverageString("five four"));
     Assert.AreEqual("zero", Kata1.AverageString("zero zero zero zero zero"));
     Assert.AreEqual("two", Kata1.AverageString("one one eight one"));
     Assert.AreEqual("n/a", Kata1.AverageString(""));
 }
Exemplo n.º 2
0
 public void CommaInput()
 {
     Assert.AreEqual("n/a", Kata1.AverageString("six , nine"));
 }
Exemplo n.º 3
0
 public void SpecialInput()
 {
     Assert.AreEqual("n/a", Kata1.AverageString("six %%%  nine"));
 }
Exemplo n.º 4
0
 public void NullInput()
 {
     Assert.AreEqual("n/a", Kata1.AverageString(null));
 }
Exemplo n.º 5
0
 public void EmptyString()
 {
     Assert.AreEqual("n/a", Kata1.AverageString(""));
 }
Exemplo n.º 6
0
 public void Four_Six_Two_Three()
 {
     Assert.AreEqual("three", Kata1.AverageString("four six two three"));
 }