AddFruit() приватный Метод

private AddFruit ( string p ) : int
p string
Результат int
Пример #1
0
 public void WhenAddTwoCeriseApplyDiscount()
 {
     var caisse = new Caisse();
     int panier = caisse.AddFruit("Cerise");
     panier = caisse.AddFruit("Cerise");
     Assert.AreEqual(130, panier);
 }
Пример #2
0
 public void WhenAddPommeToPommeShouldReturn200()
 {
     var caisse = new Caisse();
     int panier = caisse.AddFruit("Pomme");
     panier = caisse.AddFruit("Pomme");
     Assert.AreEqual(200, panier);
 }
Пример #3
0
        public void WhenAddTwoCeriseApplyDiscount()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Cerise");

            panier = caisse.AddFruit("Cerise");
            Assert.AreEqual(130, panier);
        }
Пример #4
0
        public void WhenAddPommeToPommeShouldReturn200()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Pomme");

            panier = caisse.AddFruit("Pomme");
            Assert.AreEqual(200, panier);
        }
Пример #5
0
        public void WhenTwoBananeReturnOne()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Banane");

            panier = caisse.AddFruit("Banane");
            // Assert.AreEqual(150, panier);

            Assert.AreEqual(150, panier);
        }
Пример #6
0
        public void WhenIteration4LanguesShouldReturn580()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Cerise");
            panier = caisse.AddFruit("Apple");
            panier = caisse.AddFruit("Cerise");
            panier = caisse.AddFruit("Banane");
            panier = caisse.AddFruit("Pomme");
            panier = caisse.AddFruit("Mele");

            Assert.AreEqual(580, panier);
        }
Пример #7
0
        public void WhenIteration4ShouldReturn380()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Cerise");

            panier = caisse.AddFruit("Apple");
            panier = caisse.AddFruit("Cerise");
            panier = caisse.AddFruit("Banane");
            panier = caisse.AddFruit("Banane");


            Assert.AreEqual(380, panier);
        }
Пример #8
0
        public void WhenPommeCeriseBananeShouldReturn325()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("pomme, cerise, banane");

            Assert.AreEqual(325, panier);
        }
Пример #9
0
        public void WhenCerisesShouldReturn75()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Cerise");

            Assert.AreEqual(75, panier);
        }
Пример #10
0
        public void WhenBananeShouldReturn150()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Banane");

            Assert.AreEqual(150, panier);
        }
Пример #11
0
        public void WhenIteration6Test2ShouldReturn100()
        {
            var caisse = new Caisse();

            string fruits = "Mele, Apple, Apple, Pomme, Mele";

            int panier = caisse.AddFruit(fruits);

            Assert.AreEqual(100, panier);
        }
Пример #12
0
        public void WhenIteration5PrimeLocalisationShouldReturn680()
        {
            var caisse = new Caisse();

            string fruits = "Mele, Apple, Apple, Pomme, Apple, Mele, Cerise, Cerise, banane";

            int panier = caisse.AddFruit(fruits);

            Assert.AreEqual(680, panier);
        }
Пример #13
0
 public void WhenIteration3ShouldReturn610()
 {
     var caisse = new Caisse();
     int panier = caisse.AddFruit("Cerise");
     panier = caisse.AddFruit("Pomme");
     panier = caisse.AddFruit("Cerise");
     panier = caisse.AddFruit("Banane");
     panier = caisse.AddFruit("Cerise");
     panier = caisse.AddFruit("Cerise");
     panier = caisse.AddFruit("Pomme");
     Assert.AreEqual(610, panier);
 }
Пример #14
0
        public void WhenIteration3ShouldReturn555()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Cerise");

            panier = caisse.AddFruit("Pomme");
            panier = caisse.AddFruit("Cerise");
            panier = caisse.AddFruit("Banane");
            panier = caisse.AddFruit("Pomme");
            panier = caisse.AddFruit("Banane");
            panier = caisse.AddFruit("Cerise");
            Assert.AreEqual(555, panier);
        }
Пример #15
0
        public void WhenIteration4LanguesShouldReturn580()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Cerise");

            panier = caisse.AddFruit("Apple");
            panier = caisse.AddFruit("Cerise");
            panier = caisse.AddFruit("Banane");
            panier = caisse.AddFruit("Pomme");
            panier = caisse.AddFruit("Mele");


            Assert.AreEqual(580, panier);
        }
Пример #16
0
 public void WhenCerisesShouldReturn75()
 {
     var caisse = new Caisse();
     int panier = caisse.AddFruit("Cerise");
     Assert.AreEqual(75, panier);
 }
Пример #17
0
 public void WhenBananeShouldReturn150()
 {
     var caisse = new Caisse();
     int panier = caisse.AddFruit("Banane");
     Assert.AreEqual(150, panier);
 }
Пример #18
0
        public void WhenTwoBananeReturnOne()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Banane");
            panier = caisse.AddFruit("Banane");
               // Assert.AreEqual(150, panier);

            Assert.AreEqual(150, panier);
        }
Пример #19
0
        public void WhenPommeCeriseBananeShouldReturn325()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("pomme, cerise, banane");

            Assert.AreEqual(325, panier);
        }
Пример #20
0
        public void WhenIteration6Test2ShouldReturn100()
        {
            var caisse = new Caisse();

            string fruits = "Mele, Apple, Apple, Pomme, Mele";

            int panier = caisse.AddFruit(fruits);

            Assert.AreEqual(100, panier);
        }
Пример #21
0
        public void WhenIteration4ShouldReturn380()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Cerise");
            panier = caisse.AddFruit("Apple");
            panier = caisse.AddFruit("Cerise");
            panier = caisse.AddFruit("Banane");
            panier = caisse.AddFruit("Banane");

            Assert.AreEqual(380, panier);
        }
Пример #22
0
        public void WhenIteration5PrimeLocalisationShouldReturn680()
        {
            var caisse = new Caisse();

            string fruits = "Mele, Apple, Apple, Pomme, Apple, Mele, Cerise, Cerise, banane";

            int panier = caisse.AddFruit(fruits);

            Assert.AreEqual(680, panier);
        }