public void WhenLargeIntegerIsPassedThenItShouldConvertIntoBigInteger() { var parser = new BigNumberParser(); var actual = parser.Parse("12345678987655554443322234"); var expected = BigInteger.Parse("12345678987655554443322234"); Assert.AreEqual(expected, actual); }
public void WhenEmptyValueIsParsedThenItShouldNullException() { var parser = new BigNumberParser(); parser.Parse(string.Empty); }
public void WhenADecimalNumberIsPassedThenDecimalNumberNotAllowedExceptionThrown() { var parser = new BigNumberParser(); parser.Parse("5.6666666"); }
public void WhenNullValueIsParsedThenItShouldNullException() { var parser = new BigNumberParser(); parser.Parse(null); }