Example #1
0
 public void Register_ActionNull_ThrowsArgumentNullException()
 {
     ExceptionAssert.CatchArgumentNullException(() =>
     {
         ThreadDomain.Register(typeof(Int32), null);
     },
                                                "creator");
 }
Example #2
0
 public void Register_TypeNull_ThrowsArgumentNullException()
 {
     ExceptionAssert.CatchArgumentNullException(() =>
     {
         ThreadDomain.Register(null, null);
     },
                                                "type");
 }