]> git.wincent.com - WOTest.git/blob - WOTest.h
Fix object-to-pointer comparisons on Leopard
[WOTest.git] / WOTest.h
1 //
2 //  WOTest.h
3 //  WOTest
4 //
5 //  Created by Wincent Colaiuta on 12 October 2004.
6 //
7 //  Copyright 2004-2007 Wincent Colaiuta.
8 //  This program is free software: you can redistribute it and/or modify
9 //  it under the terms of the GNU General Public License as published by
10 //  the Free Software Foundation, either version 3 of the License, or
11 //  (at your option) any later version.
12 //
13 //  This program is distributed in the hope that it will be useful,
14 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 //  GNU General Public License for more details.
17 //
18 //  You should have received a copy of the GNU General Public License
19 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 //
21
22 //! \file WOTest.h
23
24 #pragma mark -
25 #pragma mark Marker protocol
26
27
28 /*! You can indicate that a class contains unit tests by marking it with the WOTest marker protocol. Although there are no selectors explicitly defined in the protocol you should at the very least ensure that your class responds to the alloc, init and release selectors (this is because before running each test method the framework instantiates a new copy of your test class by sending the alloc and init messages and afterwards sends a release message. In practice this means that any subclass of NSObject is suitable for writing test classes. You can also use classes which do not derive from the NSObject root class but you should be aware that if they do not implement alloc, init and release then WOTest will issue warnings at runtime. */
29 @protocol WOTest
30
31 @end
32
33 #pragma mark -
34 #pragma mark Macros
35
36 #import "WOEnumerate.h"
37 #import "WOTestMacros.h"
38
39 #pragma mark -
40 #pragma mark Classes
41
42 #import "WOClassMock.h"
43 #import "WOObjectMock.h"
44 #import "WOObjectStub.h"
45 #import "WOProtocolMock.h"
46 #import "WOProtocolStub.h"
47 #import "WOTestApplicationTestsController.h"
48 #import "WOTestBundleInjector.h"
49 #import "WOTestClass.h"
50 #import "WOTestLowLevelException.h"
51
52 #pragma mark -
53 #pragma mark Categories
54
55 #import "NSException+WOTest.h"
56 #import "NSInvocation+WOTest.h"
57 #import "NSMethodSignature+WOTest.h"
58 #import "NSObject+WOTest.h"
59 #import "NSProxy+WOTest.h"
60 #import "NSScanner+WOTest.h"
61 #import "NSString+WOTest.h"
62 #import "NSValue+WOTest.h"