BEGIN_TESTF
BEGIN_TESTF is used to implement a test that is part of a fixture. It is similar to BEGIN_TEST, yet also adds the test to the corresponding fixture.
[in] TestName Name of the test routine. The name must be unique within the fixture and has to be a valid C++ identifier; it must follow the naming rules for functions.
[in] FixtureName Name of the fixture to assign the test routine to. The fixture (and its name) must have been defined previously using FIXTURE.
FIXTURE( TestFixture );
BEGIN_TESTF( Test01, TestFixture )
{
WIN_ASSERT_THROWS(
RaiseSimpleException(),
SimpleException,
_T( "Expecting SimpleException" ) );
}
END_TESTF
![]() | Note |
|---|---|
| Note that END_TESTF must be used to mark the end of the test. |




![[Note]](images/note.png)