Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Commit 9a99e3d

Browse files
committed
Add test with unserializable value (NSDate)
1 parent a505206 commit 9a99e3d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CMDQueryStringSerializationTests/CMDQueryStringSerializationTests.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,10 @@ - (void)testDictionaryWithUnserializableKey {
137137
XCTAssertThrowsSpecificNamed([CMDQueryStringSerialization queryStringWithDictionary:desiredDictionary], NSException, NSInvalidArgumentException);
138138
}
139139

140+
- (void)testDictionaryWithUnserializableValue {
141+
NSDictionary *desiredDictionary = @{ @"key" : [NSDate date] };
142+
143+
XCTAssertThrowsSpecificNamed([CMDQueryStringSerialization queryStringWithDictionary:desiredDictionary], NSException, NSInvalidArgumentException);
144+
}
145+
140146
@end

0 commit comments

Comments
 (0)