public void ThrowArgumentException_WhenInvokedWithNegativeWaterConsumedParameter() { // Assert var suggestedWaterIntake = 3700; var waterConsumed = -1000; var dailyNutriCal = new DailyNutriCalc(); // Act Assert.ThrowsException <ArgumentException>(() => dailyNutriCal.RemainingWaterIntake(suggestedWaterIntake, waterConsumed)); }
public void ReturnRemainingWaterIntake_WhenInvokedWithValidParameters() { // Assert var suggestedWaterIntake = 3700; var waterConsumed = 2000; var expectedResult = 1700; var dailyNutriCal = new DailyNutriCalc(); // Act var actualResult = dailyNutriCal.RemainingWaterIntake(suggestedWaterIntake, waterConsumed); // Arrange Assert.AreEqual(expectedResult, actualResult); }