Beispiel #1
0
 private void TryInvalid(string strLong)
 {
     try
     {
         LongValue.ParseString(strLong);
         Assert.IsTrue(false);
     }
     catch (Exception ex)
     {
         log.Debug("Expected exception caught, msg=" + ex.Message);
     }
 }
Beispiel #2
0
        private void TryValid(string strLong, long expected)
        {
            long result = LongValue.ParseString(strLong);

            Assert.IsTrue(result == expected);
        }