60
61
62
63
64
65
66
67
68
|
EXPECT_EXCEPTION(@"Detect invalid call of -[updateWithBuffer] #1",
OFHashAlreadyCalculatedException, [md5 updateWithBuffer: ""
ofSize: 1])
EXPECT_EXCEPTION(@"Detect invalid call of -[updateWithBuffer] #2",
OFHashAlreadyCalculatedException, [sha1 updateWithBuffer: ""
ofSize: 1])
[pool release];
}
|
|
|
60
61
62
63
64
65
66
67
68
|
EXPECT_EXCEPTION(@"Detect invalid call of -[updateWithBuffer] #1",
OFHashAlreadyCalculatedException, [md5 updateWithBuffer: ""
ofSize: 1])
EXPECT_EXCEPTION(@"Detect invalid call of -[updateWithBuffer] #2",
OFHashAlreadyCalculatedException, [sha1 updateWithBuffer: ""
ofSize: 1])
[pool drain];
}
|