How can I add constructor in Objective C unit test ?
With the defaut xcode testing code :
#import "MultiVueTests.h"
@implementation MultiVueTests
- (void)setUp
{
[super setUp];
// Set-up code here.
}
- (void)tearDown
{
// Tear-down code here.
[super tearDown];
}
- (void)testExample
{
STFail(@"Unit tests are not implemented yet in MultiVueTests");
}
It's possible to add Constructor for all test in this file?
*EDIT : * In my case it's to test the resutl of a webService call. In the constructor I call the webService and each test testing the answer. But if I call the webService in the setUp, it will call for each test.
Thanks