mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 23:36:11 +01:00
44 lines
621 B
Plaintext
44 lines
621 B
Plaintext
//
|
|
// CatchOCTestCase.mm
|
|
// OCTest
|
|
//
|
|
// Created by Phil Nash on 13/11/2010.
|
|
// Copyright 2010 Two Blue Cubes Ltd. All rights reserved.
|
|
//
|
|
|
|
#import "CatchOCTestCase.h"
|
|
|
|
|
|
@implementation TestFixture
|
|
|
|
|
|
-(void) setUp
|
|
{
|
|
obj = [[TestObj alloc] init];
|
|
}
|
|
|
|
-(void) tearDown
|
|
{
|
|
[obj release];
|
|
}
|
|
|
|
OC_TEST_CASE( "OCTest/test1", "This is a test case" )
|
|
{
|
|
EXPECT( obj.int_val == 0 );
|
|
|
|
obj.int_val = 1;
|
|
|
|
EXPECT( obj.int_val == 1 );
|
|
}
|
|
|
|
OC_TEST_CASE( "OCTest/test2", "This is another test case" )
|
|
{
|
|
EXPECT( obj.int_val == 0 );
|
|
|
|
obj.int_val = 2;
|
|
|
|
EXPECT( obj.int_val == 2 );
|
|
}
|
|
|
|
@end
|