Ancestry.QueryProcessor.Test.ProcessorTests.EvaluateWithArguments C# (CSharp) Method

EvaluateWithArguments() private method

private EvaluateWithArguments ( ) : void
return void
        public void EvaluateWithArguments()
        {
            var processor = new Processor();

            var result = processor.Evaluate("var x := 5 return x", new Dictionary<string, object> { { "x", 10} });
            Assert.IsTrue(result.Type is Type.BaseIntegerType);
            Assert.AreEqual(10, result.Result);
        }