PageRenderTime 34ms CodeModel.GetById 14ms app.highlight 16ms RepoModel.GetById 1ms app.codeStats 1ms

/core/autoinstaller/UpdateEngineExtensions/EngineDelegateTest.m

http://macfuse.googlecode.com/
Objective C | 33 lines | 18 code | 8 blank | 7 comment | 0 complexity | fc13df74aefa886315316402e09e67b5 MD5 | raw file
 1//
 2//  EngineDelegateTest.m
 3//  autoinstaller
 4//
 5//  Created by Greg Miller on 7/19/08.
 6//  Copyright 2008 Google Inc. All rights reserved.
 7//
 8
 9#import <SenTestingKit/SenTestingKit.h>
10#import "EngineDelegate.h"
11#import "UpdatePrinter.h"
12
13
14@interface EngineDelegateTest : SenTestCase
15@end
16
17@implementation EngineDelegateTest
18
19- (void)testCreation {
20  EngineDelegate *delegate = [[[EngineDelegate alloc] init] autorelease];
21  STAssertNotNil(delegate, nil);
22  
23  delegate = [[[EngineDelegate alloc] initWithPrinter:nil
24                                              doInstall:NO] autorelease];
25  STAssertNotNil(delegate, nil);
26  
27  UpdatePrinter *printer = [UpdatePrinter printer];
28  delegate = [[[EngineDelegate alloc] initWithPrinter:printer
29                                              doInstall:NO] autorelease];
30  STAssertNotNil(delegate, nil);
31}
32
33@end