mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-08 19:57:14 +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 |