Beispiel #1
0
        public void IsStringInUpperCase_NoUpperCaseString_FalseReturned(string name)
        {
            bool expected = false;
            // act
            bool actual = GreetingClass.IsStringInUpperCase(name);

            // assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void IsStringInUpperCase_EmptyString_FalseReturned()
        {
            // arrange
            bool expected = false;
            // act
            bool actual = GreetingClass.IsStringInUpperCase("");

            // assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #3
0
        public void IsStringInUpperCase_UpperCaseString_TrueReturned()
        {
            // arrange
            string name     = "JERRY";
            bool   expected = true;
            // act
            bool actual = GreetingClass.IsStringInUpperCase(name);

            // assert
            Assert.AreEqual(expected, actual);
        }