I have the Unit Test Class named CarouselWithXmlTests.I have single test case.If i entered the data for test case failure or test case success each time it throws the message that 0 test cases tested. I have following code is there anything missing?
-(void)checkTheArrayForNull
{
viewController.temp=@"c";
viewController.buttonCount=1;
[viewController goButton:self];
STAssertNotNil(viewController.setUpArray,@"set up Array is not nil");
}
and having the following message in o/p:
Test Suite 'CarouselWithXmlTests' started at 2012-05-17 10:23:55 +0000
Test Suite 'CarouselWithXmlTests' finished at 2012-05-17 10:23:55 +0000.
Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds
Change your method name, it must start with
testto run as test case