Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added general certificate deserialization test

  • Loading branch information...
commit fe4f2e25c6def7b8bca1dd2bfee278b8cb243947 1 parent 6f9d171
@Cocoanetics authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.