Permalink
Browse files

Added general certificate deserialization test

  • Loading branch information...
1 parent 6f9d171 commit fe4f2e25c6def7b8bca1dd2bfee278b8cb243947 @odrobnik odrobnik committed Mar 15, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 Test/Source/DTASN1SerializationTest.m
View
3 Test/Source/DTASN1SerializationTest.m
@@ -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.