Example #1
0
        public void NewStandShouldHaveName(string standName, string expected)
        {
            //Arrange
            LemonadeStand stand = new LemonadeStand(standName);

            //Act
            string actual = stand.Name;

            //Assert
            Assert.Equal(expected, actual);
        }
Example #2
0
        public void ShouldCalculateProfit(decimal costPerCup, decimal pricePerCup, int NumberOfCupsSold, decimal expected)
        {
            //Arrange
            LemonadeStand stand = new LemonadeStand("");

            stand.CostPerCup       = costPerCup;
            stand.PricePerCup      = pricePerCup;
            stand.NumberOfCUpsSold = NumberOfCupsSold;

            //Act
            decimal actual = stand.GetTotalProfit();

            //Assert
            Assert.Equal(expected, actual);
        }