public void ShouldGetHighestPlaceValueForPassedInString() { var placeValue = NumberToStringConverter.GetHighestPlaceValue("200"); Assert.AreEqual(PlaceValue.Hundreds, placeValue); }
public void ShouldGetGreaterThanCroresOnPassing10Crores() { var placeValue = NumberToStringConverter.GetHighestPlaceValue("100000000"); Assert.AreEqual(PlaceValue.MoreThanCrores, placeValue); }
public void ShouldGetLakhsOnGivingNineLakhs() { var placeValue = NumberToStringConverter.GetHighestPlaceValue("9999999"); Assert.AreEqual(PlaceValue.TenLakhs, placeValue); }
public void ShouldGetHigestPlaceValueForPassedInStringForDigits() { var placeValue = NumberToStringConverter.GetHighestPlaceValue("9"); Assert.AreEqual(PlaceValue.Digits, placeValue); }