コード例 #1
0
        public void ReversePropertyNameOneWord()
        {
            //Arrange
            const string propertyName = "Summit";
            //Act
            var result = BackwardMatcher.ReversePropertyName(propertyName);

            //Assert
            Assert.Equal(propertyName, result);
        }
コード例 #2
0
        public void ReversePropertyNameMoreThanOneWord()
        {
            //Arrange
            const string propertyName         = "Apartments Summit The";
            const string reversedPropertyName = "The Summit Apartments";
            //Act
            var result = BackwardMatcher.ReversePropertyName(propertyName);

            //Assert
            Assert.Equal(reversedPropertyName, result);
        }