예제 #1
0
        public void First_Character_Upper_Other_Lower()
        {
            var solution = new DetectCapitalSolution();

            var result = solution.DetectCapitalUse("Asupertest");

            Assert.True(result);
        }
예제 #2
0
        public void Last_Character_Upper()
        {
            var solution = new DetectCapitalSolution();

            var result = solution.DetectCapitalUse("asupertestB");

            Assert.False(result);
        }
예제 #3
0
        public void One_Character_Lower_Case()
        {
            var solution = new DetectCapitalSolution();

            var result = solution.DetectCapitalUse("a");

            Assert.True(result);
        }
예제 #4
0
        public void First_Character_Upper_Center_Character_Upper()
        {
            var solution = new DetectCapitalSolution();

            var result = solution.DetectCapitalUse("AsupeRtestb");

            Assert.False(result);
        }
예제 #5
0
        public void All_Characters_Lower()
        {
            var solution = new DetectCapitalSolution();

            var result = solution.DetectCapitalUse("usa");

            Assert.True(result);
        }