Exemple #1
0
        private void Unary(Scope scope, string left, double inc, Operator op, double expected)
        {
            var exp = new UnaryExpression(left, inc, op, scope);

            Assert.AreEqual(expected, exp.EvaluateAs <double>());
            Assert.AreEqual(expected, scope.Get <double>(left));
        }