Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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));
     }
 }