예제 #1
0
        public void WrongIngredientsOrder3()
        {
            var sandwich = new Sandwich();

            sandwich.Add(brown);
            sandwich.Add(salad);
            Assert.AreEqual(sandwich.Vegetables, null);
        }
예제 #2
0
        public void CanNotAddSecondBread()
        {
            var sandwich = new Sandwich();

            sandwich.Add(brown);
            sandwich.Add(white);
            Assert.AreNotEqual(sandwich.Bread, null);
            Assert.AreNotEqual(sandwich.Bread, white);
        }
예제 #3
0
        public void CanNotAddSecondMeat()
        {
            var sandwich = new Sandwich();

            sandwich.Add(rye);
            sandwich.Add(pork);
            sandwich.Add(hen);
            Assert.AreNotEqual(sandwich.Meat, null);
            Assert.AreNotEqual(sandwich.Meat, hen);
        }
예제 #4
0
        public void CanNotAddSecondVegetables()
        {
            var sandwich = new Sandwich();

            sandwich.Add(white);
            sandwich.Add(hen);
            sandwich.Add(salad);
            sandwich.Add(cucumber);
            Assert.AreNotEqual(sandwich.Vegetables, null);
            Assert.AreNotEqual(sandwich.Vegetables, cucumber);
        }
예제 #5
0
        static void Main()
        {
            var s = new Sandwich();
            var b = new Bread();
            var m = new Meat();
            var v = new Vegetables();

            s.Add(b);
            s.Add(m);
            s.Add(v);
            //Application.Run(new Game());
        }
예제 #6
0
        public void WrongIngredientsOrder2()
        {
            var sandwich = new Sandwich();

            sandwich.Add(pork);
            Assert.AreEqual(sandwich.Meat, null);
        }
예제 #7
0
 public void FirstAddBread()
 {
     sandwich.Add(rye);
     Assert.AreEqual(sandwich.Bread, rye);
 }