public void It_Should_Cast_A_Non_Numeric_String_To_Zero() { // Act LiquidNumeric number = LiquidNumeric.Parse("z").SuccessValue <LiquidNumeric>(); // Assert Assert.Equal(0, number.IntValue); }
public void It_Should_Remember_If_It_Is_An_Int_Or_Double_When_Parsed(String input, bool isInt) { // Assert Assert.Equal(isInt, LiquidNumeric.Parse(input).SuccessValue <LiquidNumeric>().IsInt); }