Re: NSObject -poseAs:
Re: NSObject -poseAs:
- Subject: Re: NSObject -poseAs:
- From: email@hidden
- Date: Thu, 31 May 2007 17:32:42 -0700
On 5/31/07, Mike R. Manzano <email@hidden> wrote:
[…]
@implementation TestThingToTest
- (void) testThingToTest
{
ThingToTest *thing = [[[ThingToTest alloc]init]autorelease];
[[MockSingletonClass class] poseAs:[SingletonClass]];
[thing methodToTest] ; // methodToTest uses the mock singleton
ctor
// Here's where it would be nice to unposeAs.
}
@end
[…]
could you instead use OCMock or does that also employ posing for mocking?
cheers,
jean-pierre
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden