Frameworks/OJUnit/OJTestCase+Assert.j
Go to the documentation of this file.

    00001 @import "OJAssert.j"
    00002
    00003 @implementation OJTestCase (OJAssert)
    00004
    00012 - (void)assertTrue:(BOOL)condition
    00013 {
    00014     [OJAssert assertTrue:condition];
    00015 }
    00016
    00025 - (void)assertTrue:(BOOL)condition message:(CPString)message
    00026 {
    00027         [OJAssert assertTrue:condition message:message];
    00028 }
    00029
    00037 - (void)assertFalse:(BOOL)condition
    00038 {
    00039     [OJAssert assertFalse:condition];
    00040 }
    00041
    00050 - (void)assertFalse:(BOOL)condition message:(CPString)message
    00051 {
    00052     [OJAssert assertFalse:condition message:message];
    00053 }
    00054
    00063 - (void)assert:(id)expected equals:(id)actual
    00064 {
    00065     [OJAssert assert:expected equals:actual];
    00066 }
    00067
    00078 - (void)assert:(id)expected equals:(id)actual message:(CPString)message
    00079 {
    00080         [OJAssert assert:expected equals:actual message:message];
    00081 }
    00082
    00091 - (void)assert:(id)expected notEqual:(id)actual
    00092 {
    00093     [OJAssert assert:expected notEqual:actual];
    00094 }
    00095
    00106 - (void)assert:(id)expected notEqual:(id)actual message:(CPString)message
    00107 {
    00108         [OJAssert assert:expected notEqual:actual message:message];
    00109 }
    00110
    00119 - (void)assert:(id)expected same:(id)actual
    00120 {
    00121     [OJAssert assert:expected same:actual];
    00122 }
    00123
    00134 - (void)assert:(id)expected same:(id)actual message:(CPString)message
    00135 {
    00136         [OJAssert assert:expected same:actual message:message];
    00137 }
    00138
    00147 - (void)assert:(id)expected notSame:(id)actual
    00148 {
    00149     [OJAssert assert:expected notSame:actual];
    00150 }
    00151
    00162 - (void)assert:(id)expected notSame:(id)actual message:(CPString)message
    00163 {
    00164         [OJAssert assert:expected notSame:actual message:message];
    00165 }
    00166
    00174 - (void)assertNull:(id)object
    00175 {
    00176         [OJAssert assertNull:object];
    00177 }
    00178
    00186 - (void)assertNull:(id)object message:(CPString)message
    00187 {
    00188         [OJAssert assertNull:object message:message];
    00189 }
    00190
    00198 - (void)assertNotNull:(id)object
    00199 {
    00200     [OJAssert assertNotNull:object];
    00201 }
    00202
    00211 - (void)assertNotNull:(id)object message:(CPString)message
    00212 {
    00213         [OJAssert assertNotNull:object message:message];
    00214 }
    00215
    00227 - (void)assertNoThrow:(Function)zeroArgClosure
    00228 {
    00229         [OJAssert assertNoThrow:zeroArgClosure];
    00230 }
    00231
    00243 - (void)assertThrows:(Function)zeroArgClosure
    00244 {
    00245         [OJAssert assertThrows:zeroArgClosure];
    00246 }
    00247
    00256 - (void)assert:(CPString)aRegex matches:(CPString)aString
    00257 {
    00258         [OJAssert assert:aRegex matches:aString];
    00259 }
    00260
    00266 - (void)fail
    00267 {
    00268     [OJAssert fail:nil];
    00269 }
    00270
    00278 - (void)fail:(CPString)message
    00279 {
    00280         [OJAssert fail:message];
    00281 }
    00282
    00283 - (void)failSame:(id)expected actual:(id)actual message:(CPString)message
    00284 {
    00285         [OJAssert failSame:expected actual:actual message:message];
    00286 }
    00287
    00288 - (void)failNotSame:(id)expected actual:(id)actual message:(CPString)message
    00289 {
    00290         [OJAssert failNotSame:expected actual:actual message:message];
    00291 }
    00292
    00293 - (void)failEqual:(id)expected actual:(id)actual message:(CPString)message
    00294 {
    00295         [OJAssert failEqual:expected actual:actual message:message];
    00296 }
    00297
    00298 - (void)failNotEqual:(id)expected actual:(id)actual message:(CPString)message
    00299 {
    00300         [OJAssert failNotEqual:expected actual:actual message:message];
    00301 }
    00302
    00303 @end

All Classes Files Functions Variables