Пример #1
0
        public void Test_GetFoodType()
        {
            // Arrange
            string         expected = "Burger";
            BasePreference BP       = new BasePreference("American", "Burger", "SitIn");

            // Act
            string actual = BP.getFoodType();

            // Assert
            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void Test_SetFoodType()
        {
            // Arrange
            string         expected = "Fish";
            BasePreference BP       = new BasePreference("Thai", "", "SitIn");

            // Act
            BP.setFoodType(expected);
            string actual = BP.getFoodType();

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