Beispiel #1
0
 public void throws_if_subject_is_null()
 {
     try
     {
         kinokoContext.Run(null as KinokoTask, 10);
     }
     catch (ArgumentNullException ex)
     {
         Assert.That(ex.ParamName, Is.EqualTo("task"));
         throw;
     }
 }
 public void throws_if_tasksProvider_is_null()
 {
     try
     {
         kinokoContext.Run(null as ITasksProvider, 10);
     }
     catch (ArgumentNullException ex)
     {
         Assert.That(ex.ParamName, Is.EqualTo("tasksProvider"));
         throw;
     }
 }