コード例 #1
0
 public void checkForInvalidInput()
 {
     try
     {
         double output = add.Addition(Unit.GALLON_TO_LITRE, 1, Unit.LITRE, 3.78);
     }
     catch (QuantityMeasurmentException exception)
     {
         Assert.AreEqual("value is zero or invalid", exception.Message);
     }
 }