Skip to content

Commit

Permalink
Added general certificate deserialization test
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Mar 15, 2013
1 parent 6f9d171 commit fe4f2e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Test/Source/DTASN1SerializationTest.m
Expand Up @@ -56,6 +56,9 @@ - (void)testCertificateDecoding
id object = [DTASN1Serialization objectWithData:data];

STAssertNotNil(object, @"Should be able to decode certificate");

STAssertTrue([object isKindOfClass:[NSArray class]], @"Certficate should be decoded as NSArray");
STAssertEquals([object count], 3, @"Certificate should have 3 sections");
}

@end

0 comments on commit fe4f2e2

Please sign in to comment.