public void NumberArgument_can_parse_valid_numbers(string value, string integerPart, string fractionalPart, bool isNegative, bool isNeutral) { var number = NumberArgument.Parse(value); Assert.Equal(value, number.Original); Assert.Equal(fractionalPart, number.FractionalPart); Assert.Equal(integerPart, number.IntegerPart); Assert.Equal(isNegative, number.IsNegative); Assert.Equal(isNeutral, number.IsNeutral); }
public void NumberArgument_throws_argument_exception_while_parse_invalid_numbers(string value) { Assert.Throws <ArgumentException>(() => NumberArgument.Parse(value)); }