Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. - (void)testThatItDoesNotCrashWithInvalidFields
  2. {
  3. // given
  4. NSDictionary *payload = // expected JSON response
  5. @{
  6. @"status": @"foo",
  7. @"from": @"eeeee",
  8. @"to": @44,
  9. @"last_update": @[],
  10. };
  11.  
  12. // when
  13. ZMConnection *connection = [ZMConnection connectionFromTransportData:payload
  14. managedObjectContext:self.managedObjectContext];
  15.  
  16. // then
  17. XCTAssertNil(connection);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement