Ejemplo n.º 1
0
        public void TestEvaluateWithLong()
        {
            var function = new DecimalFunction();

            const long longValue = 12345L;

            var result = function.Evaluate(new[]
            {
                Mock.Of <IExpression>(e => e.Evaluate(It.IsAny <IDictionary <string, object> >()) == (object)longValue)
            },
                                           ExpressiveOptions.None);

            Assert.AreEqual(12345M, result);
        }
 public Task<BigInteger> DecimalQueryAsync(DecimalFunction decimalFunction, BlockParameter blockParameter = null)
 {
     return ContractHandler.QueryAsync<DecimalFunction, BigInteger>(decimalFunction, blockParameter);
 }