#include "StdAfx.h" #include "TestSuiteTest.h" CREATE_TEST_SUITE(TestSuiteTest) TestSuiteTest::TestSuiteTest(void) { UnitTestSuite::RegisterTest(&Test1, "Test1"); UnitTestSuite::RegisterTest(&Test2, "Test2"); UnitTestSuite::RegisterTest(&Test3, "Test3"); } TestSuiteTest::~TestSuiteTest(void) { } bool TestSuiteTest::Setup() { printf("\tSetting up for the a TestSuiteTest\r\n"); return true; } bool TestSuiteTest::TearDown() { printf("\tTearing down after the a TestSuiteTest\r\n"); return true; } bool TestSuiteTest::Test1(void) { printf("\tRunning Test 1!\r\n"); ASSERT_EQUAL(1,1); return true; } bool TestSuiteTest::Test2(void) { printf("\t Test 2 Always fails!\r\n"); ASSERT_NOT_EQUAL(1,1); return true; } bool TestSuiteTest::Test3(void) { printf("\tShouldn't run Test 3!\r\n"); return true; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19358 | AnnaTito |
Populate -o //guest/perforce_software/p4connect/... //guest/AnnaTito/dev/p4connect/.... |
||
//guest/perforce_software/p4connect/main/src/P4Bridge/p4bridge-unit-test/TestSuiteTest.cpp | |||||
#1 | 16209 | Norman Morse | Move entire source tree into "main" branch so workshop code will act correctly. | ||
//guest/perforce_software/p4connect/src/P4Bridge/p4bridge-unit-test/TestSuiteTest.cpp | |||||
#1 | 10940 | Norman Morse |
Inital Workshop release of P4Connect. Released under BSD-2 license |