Beispiel #1
0
        public void UnderscoreCaseToCamelCaseConverter_Test(string input, string expectedResult)
        {
            //arrange
            var converter = new UnderscoreCaseToCamelCaseConverter();

            //act
            string actualResultMember = converter.Convert(input, (MemberInfo)null);
            string actualResultType   = converter.Convert(input, (Type)null);

            //assert
            Assert.Equal(expectedResult, actualResultMember);
            Assert.Equal(expectedResult, actualResultType);
        }
Beispiel #2
0
        public void UnderscoreCaseToCamelCaseConverter_Test(string input, string expectedResult)
        {
            //arrange
            Type type      = GetType();
            var  converter = new UnderscoreCaseToCamelCaseConverter();

            //act
            string actualResultWithType    = converter.Convert(input);
            string actualResultWithoutType = converter.Convert(input, type);

            //assert
            Assert.Equal(expectedResult, actualResultWithType);
            Assert.Equal(expectedResult, actualResultWithoutType);
        }