Esempio n. 1
0
 private static void ConfirmDoubleConvert(double doubleVal, int expected)
 {
     try
     {
         Assert.AreEqual(expected, Offset.EvaluateIntArg(new NumberEval(doubleVal), -1, -1));
     }
     catch (EvaluationException e)
     {
         throw new AssertionException("Unexpected error '" + e.GetErrorEval().ToString() + "'.");
     }
 }