Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)testThatItDoesNotCrashWithInvalidFields
- {
- // given
- NSDictionary *payload = // expected JSON response
- @{
- @"status": @"foo",
- @"from": @"eeeee",
- @"to": @44,
- @"last_update": @[],
- };
- // when
- ZMConnection *connection = [ZMConnection connectionFromTransportData:payload
- managedObjectContext:self.managedObjectContext];
- // then
- XCTAssertNil(connection);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement