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