예제 #1
0
        public void ToString_Field()
        {
            // arrange
            var fieldCoordinate = new FieldCoordinate("abc", "def");

            // act
            // assert
            Assert.Equal("abc.def", fieldCoordinate.ToString());
        }
예제 #2
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());
        }
예제 #3
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());
        }