예제 #1
0
        public void ShouldGetHighestPlaceValueForPassedInString()
        {
            var placeValue = NumberToStringConverter.GetHighestPlaceValue("200");

            Assert.AreEqual(PlaceValue.Hundreds, placeValue);
        }
예제 #2
0
        public void ShouldGetGreaterThanCroresOnPassing10Crores()
        {
            var placeValue = NumberToStringConverter.GetHighestPlaceValue("100000000");

            Assert.AreEqual(PlaceValue.MoreThanCrores, placeValue);
        }
예제 #3
0
        public void ShouldGetLakhsOnGivingNineLakhs()
        {
            var placeValue = NumberToStringConverter.GetHighestPlaceValue("9999999");

            Assert.AreEqual(PlaceValue.TenLakhs, placeValue);
        }
예제 #4
0
        public void ShouldGetHigestPlaceValueForPassedInStringForDigits()
        {
            var placeValue = NumberToStringConverter.GetHighestPlaceValue("9");

            Assert.AreEqual(PlaceValue.Digits, placeValue);
        }