예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void CupsToOz_Fourth_InvalidReturnsErrMsg()
 {
     var cupTest = new CupsToOunces();
     var result  = cupTest.CupsToOz(-1);
 }