Click here to Skip to main content
11,412,516 members (75,317 online)
Click here to Skip to main content
Add your own
alternative version

Designing Robust Objects with Boost

, 16 Aug 2004
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");


	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.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Jim D'Agostino
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.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150427.1 | Last Updated 17 Aug 2004
Article Copyright 2004 by Jim D'Agostino
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid