Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::OcMethod Class Reference

#include <catch_objc.hpp>

Inheritance diagram for Catch::OcMethod:
Collaboration diagram for Catch::OcMethod:

Instance Methods

() - OcMethod
 
(virtual void) - invoke
 
- Instance Methods inherited from Catch::ITestInvoker
virtual ~ITestInvoker ()
 
virtual ~ITestInvoker ()
 

Detailed Description

Definition at line 38 of file catch_objc.hpp.

Constructor & Destructor Documentation

◆ OcMethod

- OcMethod: (Class) cls
(SEL) sel 

Definition at line 41 of file catch_objc.hpp.

41: m_cls( cls ), m_sel( sel ) {}

Method Documentation

◆ invoke

- (virtual void) OcMethod: const

Implements Catch::ITestInvoker.

Definition at line 43 of file catch_objc.hpp.

43 {
44 id obj = [[m_cls alloc] init];
45
46 performOptionalSelector( obj, @selector(setUp) );
47 performOptionalSelector( obj, m_sel );
48 performOptionalSelector( obj, @selector(tearDown) );
49
50 arcSafeRelease( obj );
51 }
void arcSafeRelease(NSObject *obj)
id performOptionalSelector(id obj, SEL sel)
Here is the call graph for this function:

The documentation for this class was generated from the following file: