コード例 #1
0
 public void TestExceptionFromStaticMethod()
 {
     try
     {
         double result = RiskStatistics.ValueAtRisk(
             0.75, 0.0, 0.1);
     }
     catch (Exception e)
     {
         if (e is ArgumentException)
         {
             return;
         }
         else
         {
             throw e;
         }
     }
     Assert.Fail("No exception thrown");
 }