예제 #1
0
        public void TestCategorize_Input_FEMALE_12_Output_FEMALE_YOUTH()
        {
            // 1. Arrange
            string gender    = Constants.FEMALE_INITIALS;
            int    age       = 12;
            string expResult = Constants.YOUTH_FEMALE;

            // 2. Act
            string result = PersonCategorization.Categorize(gender, age);

            // 3. Assert
            Assert.AreEqual(expResult, result);
        }
예제 #2
0
        public void TestCategorize_Input_MALE_13_Output_MALE_TEEN()
        {
            // 1. Arrange
            string gender    = Constants.MALE_INITIALS;
            int    age       = 13;
            string expResult = Constants.TEEN_MALE;

            // 2. Act
            string result = PersonCategorization.Categorize(gender, age);

            // 3. Assert
            Assert.AreEqual(expResult, result);
        }
예제 #3
0
        public void TestCategorize_Input_MALE_100_Output_INVALID()
        {
            // 1. Arrange
            string gender    = Constants.FEMALE_INITIALS;
            int    age       = 100;
            string expResult = Constants.INVALID;

            // 2. Act
            string result = PersonCategorization.Categorize(gender, age);

            // 3. Assert
            Assert.AreEqual(expResult, result);
        }