Exemple #1
0
      public void CalcPastry_CalculatePricefor1Pastry_2()
      {
          //Arrange
          Pastry testPastery = new Pastry();

          //Act
          testPastery.CalcPastry(1);
          //Assert
          Assert.AreEqual(2, testPastery.PastryPrice);
      }
Exemple #2
0
      public void CalcPastry_CalculatePricefor5PastrysWithDiscount_9()
      {
          //Arrange
          Pastry testPastery = new Pastry();

          //Act
          testPastery.CalcPastry(5);
          //Assert
          Assert.AreEqual(9, testPastery.PastryPrice);
      }