Click here to Skip to main content
12,244,103 members (50,983 online)
Click here to Skip to main content

Stats

76.3K views
650 downloads
87 bookmarked
Posted

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");

	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.

License

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

Share

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.

You may also be interested in...

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