コード例 #1
0
        public void Test_GetRestaurantType()
        {
            // Arrange
            string         expected = "Takeaway";
            BasePreference BP       = new BasePreference("Indian", "Kebab", "Takeaway");

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

            // Assert
            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void Test_SetResturauntType()
        {
            // Arrange
            string         expected = "SitIn";
            BasePreference BP       = new BasePreference("Thai", "Fish", "");

            // Act
            BP.setRestaurantType(expected);
            string actual = BP.getRestaurantType();

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