From c86c65b7d821fe4bb046c489528108843513e63d Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Tue, 27 Aug 2002 20:51:18 +0000 Subject: CodingGuideLines. CodingGuideLines.txt: updated for OS/390 C++ limitation. * examples/cppunittests/MockFunctor.h: added. Mock Functor to help testing. * examples/cppunittests/MockProtector.h: qdded. Mock Protector to help testing. * examples/cppunittests/TestResultTest.h * examples/cppunittests/TestResultTest.cpp: added tests for pushProtector(), popProtector() and protect(). * include/cppunit/TestAssert.h: removed default message value from assertEquals(). Caused compilation error on OS/390. * include/cppunit/plugin/PlugInParameters.h: * src/cppunit/PlugInParameters.cpp: renamed commandLine() to getCommandLine(). * src/msvc6/testrunner/TestRunnerDlg.h: * src/msvc6/testrunner/TestRunnerDlg.cpp: bug fix, disabled Browse button while running tests. --- src/DllPlugInTester/CommandLineParserTest.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/DllPlugInTester/CommandLineParserTest.cpp') diff --git a/src/DllPlugInTester/CommandLineParserTest.cpp b/src/DllPlugInTester/CommandLineParserTest.cpp index 34bc67d..7e9ac5d 100644 --- a/src/DllPlugInTester/CommandLineParserTest.cpp +++ b/src/DllPlugInTester/CommandLineParserTest.cpp @@ -124,7 +124,7 @@ CommandLineParserTest::testFileName() CommandLinePlugInInfo info( _parser->getPlugInAt( 0 ) ); CPPUNIT_ASSERT_EQUAL( std::string("TestPlugIn.dll"), info.m_fileName ); - CPPUNIT_ASSERT_EQUAL( 0, int(info.m_parameters.size()) ); + CPPUNIT_ASSERT( info.m_parameters.getCommandLine().empty() ); } @@ -210,11 +210,10 @@ CommandLineParserTest::testPlugInsWithParameters() CommandLinePlugInInfo info1( _parser->getPlugInAt( 0 ) ); CPPUNIT_ASSERT_EQUAL( std::string("TestPlugIn1.dll"), info1.m_fileName ); - CPPUNIT_ASSERT_EQUAL( 1, int(info1.m_parameters.size()) ); CPPUNIT_ASSERT_EQUAL( std::string("login = lain"), - info1.m_parameters[0] ); + info1.m_parameters.getCommandLine() ); CommandLinePlugInInfo info2( _parser->getPlugInAt( 1 ) ); CPPUNIT_ASSERT_EQUAL( std::string("Clocker.dll"), info2.m_fileName ); - CPPUNIT_ASSERT_EQUAL( 0, int(info2.m_parameters.size()) ); + CPPUNIT_ASSERT( info2.m_parameters.getCommandLine().empty() ); } -- cgit v1.2.1