Welcome to mirror list, hosted at ThFree Co, Russian Federation.

vs2003_solution_tests.cpp « tests « vs200x « action « src - github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f545e95f1663310d2eb911da4ebbe4a70ed5a4b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
 * \file   vs2003_solution_tests.cpp
 * \brief  Automated tests for VS2003 solution processing.
 * \author Copyright (c) 2008 Jason Perkins and the Premake project
 */

#include "premake.h"
#include "action/tests/action_tests.h"
extern "C" {
#include "action/vs200x/vs200x_solution.h"
}


SUITE(action)
{
	/**********************************************************************
	 * Signature tests
	 **********************************************************************/

	TEST_FIXTURE(FxAction, Vs2003_Signature_IsCorrect)
	{
		vs2003_solution_signature(sess, sln, strm);
		CHECK_EQUAL(
			"Microsoft Visual Studio Solution File, Format Version 8.00\r\n",
			buffer);
	}


	/**********************************************************************
	 * Solution configuration tests
	 **********************************************************************/

	TEST_FIXTURE(FxAction, Vs2003_SolutionConfiguration_IsCorrect)
	{
		vs2003_solution_configuration(sess, sln, strm);
		CHECK_EQUAL(
			"Global\n"
			"\tGlobalSection(SolutionConfiguration) = preSolution\n"
			"\t\tDebug = Debug\n"
			"\t\tRelease = Release\n"
			"\tEndGlobalSection\n",
			buffer);
	}

}