Catch/Test/Xcode/OCTest/OCTest.mm

26 lines
405 B
Plaintext
Raw Normal View History

2010-11-14 17:47:30 -05:00
/*
* OCTest.mm
* OCTest
*
* Created by Phil on 13/11/2010.
* Copyright 2010 Two Blue Cubes Ltd. All rights reserved.
*
*/
#import "../../../catch.hpp"
#import "TestObj.h"
TEST_CASE( "OCTest/TestObj", "tests TestObj" )
{
TestObj* obj = [[TestObj alloc] init];
REQUIRE( obj.int_val == 0 );
2010-11-14 17:47:30 -05:00
obj.int_val = 1;
REQUIRE( obj.int_val == 1 );
2010-11-14 17:47:30 -05:00
[obj release];
}