public void Perform_Null() { using (var moc = new NSManagedObjectContext(NSManagedObjectContextConcurrencyType.MainQueue)) { // a NULL results in a native crash - but not immediate moc.Perform(null); } }
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)); } }