PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/Tests/Foundation/CPNullTest.j

http://github.com/cacaodev/cappuccino
Unknown | 18 lines | 14 code | 4 blank | 0 comment | 0 complexity | 491f29e276d317c62372b83de1377ef1 MD5 | raw file
 1@import <Foundation/CPNull.j>
 2@import <Foundation/CPKeyedArchiver.j>
 3@import <Foundation/CPKeyedUnarchiver.j>
 4
 5@implementation CPNullTest : OJTestCase
 6
 7- (void)testEquals
 8{
 9    [self assert:[CPNull null] equals:[CPNull null] message:"CPNull null should equal itself."];
10    [self assert:[CPNull null] equals:[CPNull new] message:"CPNull null should equal another CPNull."];
11}
12
13- (void)testArchiving
14{
15    [self assert:[CPKeyedUnarchiver unarchiveObjectWithData:[CPKeyedArchiver archivedDataWithRootObject:[CPNull null]]] equals:[CPNull null]];
16}
17
18@end