Skip to content

Instantly share code, notes, and snippets.

@paytonrules
Created October 28, 2009 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paytonrules/220422 to your computer and use it in GitHub Desktop.
Save paytonrules/220422 to your computer and use it in GitHub Desktop.
-(void) testRunsWithGameScene
{
MockProducer *producer = [[[MockProducer alloc] init] autorelease];
MadBomberAppDelegate *delegate = [[[MadBomberAppDelegate alloc] init] autorelease];
delegate.producer = producer;
[delegate applicationDidFinishLaunching: nil];
STAssertEquals([producer.initialScene class], [[GameScene scene] class], nil);
STAssertEqualObjects(producer.initialWindow, delegate.window, nil);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment