示例#1
0
        public void SmallRestaurant_Constructor_Meals_Array_Size_Test()
        {
            Meal[] emptyMeals = new Meal[] { };
            Table  table      = new Table();

            SmallRestaurant restaurant
                = new SmallRestaurant(table, emptyMeals);
        }
示例#2
0
        public void SmallRestaurant_Constructor_Meals_Array_Type_Test()
        {
            string[] oneArray = new string[] { "first", "second" };
            Table    table    = new Table();

            SmallRestaurant restaurant
                = new SmallRestaurant(table, oneArray);
        }
示例#3
0
        public void SmallRestaurant_Constructor_Table_Assignment_Test()
        {
            Array meals = Enum.GetValues(typeof(Meal));
            Table table = null;

            SmallRestaurant restaurant
                = new SmallRestaurant(table, meals);
        }