|
//*******************************************************************
//
// $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.
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.