예제 #1
0
 public void Perform_Null()
 {
     using (var moc = new NSManagedObjectContext(NSManagedObjectContextConcurrencyType.MainQueue)) {
         // a NULL results in a native crash - but not immediate
         moc.Perform(null);
     }
 }
예제 #2
0
 public void Perform_Null()
 {
     using (var moc = new NSManagedObjectContext(NSManagedObjectContextConcurrencyType.MainQueue)) {
         // a NULL results in a native crash - but not immediate
         Assert.Throws <ArgumentNullException> (() => moc.Perform(null));
     }
 }