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("")); }
public void CommaInput() { Assert.AreEqual("n/a", Kata1.AverageString("six , nine")); }
public void SpecialInput() { Assert.AreEqual("n/a", Kata1.AverageString("six %%% nine")); }
public void NullInput() { Assert.AreEqual("n/a", Kata1.AverageString(null)); }
public void EmptyString() { Assert.AreEqual("n/a", Kata1.AverageString("")); }
public void Four_Six_Two_Three() { Assert.AreEqual("three", Kata1.AverageString("four six two three")); }