public void NewStandShouldHaveName(string standName, string expected) { //Arrange LemonadeStand stand = new LemonadeStand(standName); //Act string actual = stand.Name; //Assert Assert.Equal(expected, actual); }
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); }