main
 1//
 2// Licensed under the terms in License.txt
 3//
 4// Copyright 2010 Allen Ding. All rights reserved.
 5//
 6
 7#import "KiwiConfiguration.h"
 8#import <SenTestingKit/SenTestingKit.h>
 9#import "KWExpectationType.h"
10#import "KWReporting.h"
11
12@class KWCallSite;
13@class KWMatcherFactory;
14
15@protocol KWVerifying;
16
17// Deprecated. This is here just in case blocks are not enabled.
18@interface KWTestCase : SenTestCase<KWReporting> {
19@private
20    KWMatcherFactory *matcherFactory;
21    NSMutableArray *verifiers;
22    NSMutableArray *failures;
23}
24
25#pragma mark -
26#pragma mark Configuring Example Environments
27
28- (void)setUpExampleEnvironment;
29- (void)tearDownExampleEnvironment;
30
31#pragma mark -
32#pragma mark Marking Pending Examples
33
34- (void)markPendingWithCallSite:(KWCallSite *)aCallSite;
35- (void)markPendingWithCallSite:(KWCallSite *)aCallSite :(NSString *)aDescription;
36
37#pragma mark -
38#pragma mark Adding Verifiers
39
40- (id)addVerifier:(id<KWVerifying>)aVerifier;
41- (id)addExistVerifierWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite *)aCallSite;
42- (id)addMatchVerifierWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite *)aCallSite;
43- (id)addAsyncVerifierWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite *)aCallSite timeout:(NSInteger)timeout;
44
45@end