public void DstField_DstGraphFieldAndListOfObjects_ReturnsCorrectReference()
        {
            IdentifierExpression identifier = new IdentifierExpression("test", 0, 0);
            DstGraphField        input1     = new DstGraphField(identifier, 0, 0);
            List <Object>        list       = new List <Object>();
            Function             expected   = new Function(1);
            Graph graph = new Graph(null, null, null, expected);

            IInterpreterFunction parent = Substitute.For <IInterpreterFunction>();

            parent.DispatchGraph(identifier, Arg.Any <List <object> >()).Returns(graph);
            FunctionHelper functionHelper = SetupHelper(parent);

            Function res = functionHelper.DstField(input1, list);

            Assert.AreEqual(expected.Reference, res.Reference);
        }
        public Function DstField(DstGraphField node, List <Object> parameters)
        {
            Graph graph = _interpreter.DispatchGraph(node.Children[0], parameters);

            return(graph.Dst);
        }