Example #1
0
 public void RegisterTask_ThrowsIfEndDelegateIsNull()
 {
     // Act & assert
     ExceptionHelper.ExpectArgumentNullException(
         delegate {
         AsyncManagerExtensions.RegisterTask(new AsyncManager(), _ => null, null);
     }, "endDelegate");
 }
Example #2
0
 public void RegisterTask_ThrowsIfAsyncManagerIsNull()
 {
     // Act & assert
     ExceptionHelper.ExpectArgumentNullException(
         delegate {
         AsyncManagerExtensions.RegisterTask(null, _ => null, _ => { });
     }, "asyncManager");
 }
 public void RegisterTask_ThrowsIfAsyncManagerIsNull()
 {
     // Act & assert
     Assert.ThrowsArgumentNull(
         delegate
     {
         AsyncManagerExtensions.RegisterTask(null, _ => null, _ => { });
     },
         "asyncManager"
         );
 }