mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-18 22:41:18 +00:00
24 lines
570 B
Plaintext
24 lines
570 B
Plaintext
@import <Foundation/CPError.j>
|
|
@import <OJUnit/OJTestCase.j>
|
|
|
|
@implementation CPErrorTest : OJTestCase
|
|
{
|
|
}
|
|
|
|
- (void)testInstanceInstantiation
|
|
{
|
|
var err = [[CPError alloc] initWithDomain:CPCappuccinoErrorDomain
|
|
code:-10
|
|
userInfo:nil];
|
|
[self assertNotNull:err];
|
|
}
|
|
|
|
- (void)testClassInstantiation
|
|
{
|
|
var err = [CPError errorWithDomain:CPCappuccinoErrorDomain
|
|
code:-10
|
|
userInfo:nil];
|
|
[self assertNotNull:err];
|
|
}
|
|
|
|
@end |