public void CreatingNewObject_ShouldHaveCorrectValueCorectDataGiven() { var expected = new DecimalValue(79.9); var actual = new DecimalLiteral("79.9"); Assert.Equal(expected, actual.Value); }
public virtual TResult Visit(DecimalLiteral literal, TEnvironment environment) { return(default(TResult)); }
public ValueType Visit(DecimalLiteral literal, VisitorTypeEnvironment environment) { return(new DecimalValueType()); }
/// <summary> /// Validate a decimal literal. /// </summary> /// <param name="e"> /// is the expression. </param> /// <returns> null. </returns> public virtual object visit(DecimalLiteral e) { return(null); }
public IValue Visit(DecimalLiteral literal, TypeEnvironment environment) { return(literal.Value); }
public void CreatingNewObject_ShouldHaveCorrectValueCorrectDataGiven() { var actual = new DecimalLiteral("0.66"); Assert.Equal(0.66, actual.Value); }