예제 #1
0
 public void ProcessTest()
 {
     for (int index = 1; index < 101; index++)
     {
         var result = _baseEvent.Process(index);
         if (Convert.ToInt32(result) != index)
         {
             Assert.Fail();
         }
     }
 }
예제 #2
0
 public void ProcessTestNegativeNumber()
 {
     try
     {
         _baseEvent?.Process(-1);
         Assert.Fail();
     }
     catch (Exception ex)
     {
         if (ex.GetType() != typeof(ArgumentException))
         {
             Assert.Fail();
         }
     }
 }