public void CupsToOz_Third_Success() { // Arrange var cupTest = new CupsToOunces(); double expected = ((1 / 3) * 8); // Act var result = cupTest.CupsToOz((1 / 3)); // Assert Assert.AreEqual(expected, result); }
public void CupsToOz_Second_Success() { // Arrange var cupTest = new CupsToOunces(); double expected = 4; // Act var result = cupTest.CupsToOz(0.5); // Assert Assert.AreEqual(expected, result); }
public void CupsToOz_Fourth_InvalidReturnsErrMsg() { var cupTest = new CupsToOunces(); var result = cupTest.CupsToOz(-1); }