Click here to Skip to main content
15,885,278 members
Articles / Programming Languages / Objective C

Designing Robust Objects with Boost

Rate me:
Please Sign up or sign in to vote.
4.78/5 (34 votes)
16 Aug 200411 min read 110.2K   710   87  
Tutorial on designing classes using Boost libraries
//*******************************************************************
//
// $Workfile: Tests.cpp $
//
// $Modtime: 8/15/04 11:29a $
//
// Unit tests for the Core Library.
//

#include "stdafx.h"
#pragma warning(push, 2)
#include "boost/test/included/unit_test_framework.hpp"
#pragma warning(pop)

#include "AppVersionTests.h"

#include "Tests.h"

using namespace std;
using boost::unit_test_framework::test_suite;

#if defined(_DEBUG)
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif // defined(_DEBUG)

// The one and only application object
CWinApp theApp;

//*******************************************************************
//
test_suite* init_unit_test_suite(int /* argc */, char* /* argv */[])
{
	// initialize MFC and print and error on failure
	if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
	{
		printf("Fatal Error: MFC initialization failed\n");
		return (0);
	}

	test_suite* CoreTestSuite = BOOST_TEST_SUITE("Core Tests");

	AppVersionTests(CoreTestSuite);

	return (CoreTestSuite);
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Technical Lead
United States United States
Jim has been developing software for over 25 years. He is a consultant specializing in writing software for commercial products. He has developed software for embedded systems, device drivers, and windows applications.

Comments and Discussions