Esempio n. 1
0
        public void First_Character_Upper_Other_Lower()
        {
            var solution = new DetectCapitalSolution();

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

            Assert.True(result);
        }
Esempio n. 2
0
        public void Last_Character_Upper()
        {
            var solution = new DetectCapitalSolution();

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

            Assert.False(result);
        }
Esempio n. 3
0
        public void One_Character_Lower_Case()
        {
            var solution = new DetectCapitalSolution();

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

            Assert.True(result);
        }
Esempio n. 4
0
        public void First_Character_Upper_Center_Character_Upper()
        {
            var solution = new DetectCapitalSolution();

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

            Assert.False(result);
        }
Esempio n. 5
0
        public void All_Characters_Lower()
        {
            var solution = new DetectCapitalSolution();

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

            Assert.True(result);
        }