public void With_FieldName() { // arrange var fieldCoordinate = new FieldCoordinate("abc", "def"); // act fieldCoordinate = fieldCoordinate.With(fieldName: new NameString("xyz")); // assert Assert.Equal("abc.xyz", fieldCoordinate.ToString()); }
public void With_Argument() { // arrange var fieldCoordinate = new FieldCoordinate("abc", "def"); // act fieldCoordinate = fieldCoordinate.With(argumentName: new NameString("xyz")); // assert Assert.Equal("abc.def(xyz)", fieldCoordinate.ToString()); }