]> git.wincent.com - WOTest.git/blobdiff - Tests/WOClassMockTests.m
Code clean-up for garbage collection
[WOTest.git] / Tests / WOClassMockTests.m
index d53d1f6c2d91d2bba0637ef4904661b3366b7265..90a26536172654ac95abbb53da119d2e7c8b979c 100644 (file)
     // should throw if passed NULL
     mock = [WOClassMock alloc];
     WO_TEST_THROWS([mock initWithClass:NULL]);
-    [mock release];
 
     // should throw if passed non-class pointer
     mock = [WOClassMock alloc];
     WO_TEST_THROWS([mock initWithClass:(Class)self]);
-    [mock release];
 
     // otherwise should work
-    WO_TEST_DOES_NOT_THROW
-        ([[[WOClassMock alloc] initWithClass:[self class]] autorelease]);
+    WO_TEST_DOES_NOT_THROW([[WOClassMock alloc] initWithClass:[self class]]);
 
     // should throw if passed a meta class
     Class class     = [NSString class];
     Class metaclass = object_getClass(class);
     mock = [WOClassMock alloc];
     WO_TEST_THROWS([mock initWithClass:metaclass]);
-    [mock release];
 }
 
 - (void)testAccept