public void Create_ArgumentsArePassedCorrecctly() { // arrange // act var variableDefinition = new VariableDefinitionNode( new Location(1, 2, 3, 5), new VariableNode(new NameNode("foo")), new NamedTypeNode(new NameNode("bar")), new StringValueNode("baz"), new List <DirectiveNode> { new DirectiveNode("qux") }); // assert variableDefinition.MatchSnapshot(); }
public void WithLocation() { // arrange var variableDefinition = new VariableDefinitionNode( new Location(1, 2, 3, 5), new VariableNode(new NameNode("foo")), new NamedTypeNode(new NameNode("bar")), new StringValueNode("baz"), new List <DirectiveNode> { new DirectiveNode("qux") }); // act variableDefinition = variableDefinition.WithLocation( new Location(6, 7, 8, 9)); // assert variableDefinition.MatchSnapshot(); }