예제 #1
0
 public void DealsWithImproperInputs()
 {
     Assert.Equal(0, WordToNumberConverter.Convert(null));
     Assert.Equal(0, WordToNumberConverter.Convert(""));
 }
예제 #2
0
 public void ConvertsZeroes()
 {
     Assert.Equal("zero", NumberToWordConverter.Convert(0));
     Assert.Equal(0, WordToNumberConverter.Convert("zero"));
 }