#import "ObjectTesting.h" #import #import int main() { NSAutoreleasePool *arp = [NSAutoreleasePool new]; NSXMLDocument *node; node = [NSXMLDocument alloc]; PASS_EXCEPTION([node initWithData: nil options: 0 error: 0], NSInvalidArgumentException, "Cannot initialise an XML document with nil data"); node = [NSXMLDocument alloc]; PASS_EXCEPTION([node initWithData: (NSData*)@"bad" options: 0 error: 0], NSInvalidArgumentException, "Cannot initialise an XML document with bad data class"); node = [[NSXMLDocument alloc] init]; test_alloc(@"NSXMLNode"); test_NSObject(@"NSXMLNode", [NSArray arrayWithObject: node]); [arp release]; arp = nil; [node release]; return 0; }