Exemplo n.º 1
0
 private void AssertNumericPromotionThrows <TException>(IConvertible value)
 {
     try
     {
         RuntimeServices.CheckNumericPromotion(value);
         Assert.Fail();
     }
     catch (Exception e)
     {
         Assert.IsInstanceOfType(typeof(TException), e);
     }
 }