Exemple #1
0
        public void WhenPommeCeriseBananeShouldReturn325()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("pomme, cerise, banane");

            Assert.AreEqual(325, panier);
        }
Exemple #2
0
        public void WhenCerisesShouldReturn75()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Cerise");

            Assert.AreEqual(75, panier);
        }
 public void WhenAddTwoCeriseApplyDiscount()
 {
     var caisse = new Caisse();
     int panier = caisse.AddFruit("Cerise");
     panier = caisse.AddFruit("Cerise");
     Assert.AreEqual(130, panier);
 }
Exemple #4
0
        public void WhenBananeShouldReturn150()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Banane");

            Assert.AreEqual(150, panier);
        }
 public void WhenAddPommeToPommeShouldReturn200()
 {
     var caisse = new Caisse();
     int panier = caisse.AddFruit("Pomme");
     panier = caisse.AddFruit("Pomme");
     Assert.AreEqual(200, panier);
 }
Exemple #6
0
        public void WhenPommeShouldReturn100()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Pomme");

            Assert.AreEqual(100, panier);
        }
Exemple #7
0
        public void WhenAddTwoCeriseApplyDiscount()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("Cerise");

            panier = caisse.AddFruit("Cerise");
            Assert.AreEqual(130, panier);
        }
Exemple #8
0
        public void WhenIteration6Test2ShouldReturn100()
        {
            var caisse = new Caisse();

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

            int panier = caisse.AddFruit(fruits);

            Assert.AreEqual(100, panier);
        }
Exemple #9
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);
        }
Exemple #10
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);
        }
Exemple #11
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);
        }
Exemple #12
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);
 }
Exemple #13
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);
        }
Exemple #14
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);
        }
Exemple #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);
        }
Exemple #16
0
 public void WhenCerisesShouldReturn75()
 {
     var caisse = new Caisse();
     int panier = caisse.AddFruit("Cerise");
     Assert.AreEqual(75, panier);
 }
Exemple #17
0
 public void WhenBananeShouldReturn150()
 {
     var caisse = new Caisse();
     int panier = caisse.AddFruit("Banane");
     Assert.AreEqual(150, panier);
 }
Exemple #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);
        }
Exemple #19
0
        public void WhenPommeCeriseBananeShouldReturn325()
        {
            var caisse = new Caisse();
            int panier = caisse.AddFruit("pomme, cerise, banane");

            Assert.AreEqual(325, panier);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }