Пример #1
0
        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());
        }
Пример #2
0
        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());
        }