Ejemplo n.º 1
0
        public void PascalCaseToCamelCaseConverter_Test(string input, string expectedResult)
        {
            //arrange
            var converter = new PascalCaseToCamelCaseConverter();

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

            //assert
            Assert.Equal(expectedResult, actualResultMember);
            Assert.Equal(expectedResult, actualResultType);
        }
Ejemplo n.º 2
0
        public void PascalCaseToCamelCaseConverter_Test(string input, string expectedResult)
        {
            //arrange
            Type type      = GetType();
            var  converter = new PascalCaseToCamelCaseConverter();

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

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