示例#1
0
        public void CreatingNewObject_ShouldHaveCorrectValueCorectDataGiven()
        {
            var expected = new DecimalValue(79.9);
            var actual   = new DecimalLiteral("79.9");

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

            Assert.Equal(0.66, actual.Value);
        }