public void EdgesField_EdgesGraphFieldAndListOfObjects_ReturnsCorrectResult() { IdentifierExpression identifier = new IdentifierExpression("test", 0, 0); EdgesGraphField input1 = new EdgesGraphField(identifier, 0, 0); List <Object> list = new List <Object>(); Set expected = new Set(new Element(1)); Graph graph = new Graph(null, expected, null, null); IInterpreterSet parent = Substitute.For <IInterpreterSet>(); parent.DispatchGraph(identifier, Arg.Any <List <object> >()).Returns(graph); SetHelper setHelper = SetUpHelper(parent); Set res = setHelper.EdgesField(input1, list); res.Should().BeEquivalentTo(expected); }