Change camelCase methods to PascalCase

This commit is contained in:
Patrick Johnmeyer 2016-02-04 22:45:36 -06:00
parent 40b8f0b17b
commit 57fc32c114
6 changed files with 10 additions and 11 deletions

View file

@ -8,11 +8,11 @@
#endif
#ifndef UNITTEST_NO_EXCEPTIONS
#define REQUIRE for(UnitTest::RequiredCheckTestReporter decoratedReporter(UnitTest::CurrentTest::Results()); decoratedReporter.next(); )
#define REQUIRE for(UnitTest::RequiredCheckTestReporter decoratedReporter(UnitTest::CurrentTest::Results()); decoratedReporter.Next(); )
#endif
#ifdef UNITTEST_NO_EXCEPTIONS
#define REQUIRE
#define REQUIRE
#endif
#endif

View file

@ -12,17 +12,17 @@ namespace UnitTest {
{
if(m_results)
{
m_throwingReporter.setDecorated(m_results->m_testReporter);
m_throwingReporter.SetDecorated(m_results->m_testReporter);
m_results->m_testReporter = &m_throwingReporter;
}
}
RequiredCheckTestReporter::~RequiredCheckTestReporter()
{
if(m_results) m_results->m_testReporter = m_throwingReporter.getDecorated();
if(m_results) m_results->m_testReporter = m_throwingReporter.GetDecorated();
}
bool RequiredCheckTestReporter::next()
bool RequiredCheckTestReporter::Next()
{
return m_continue++ == 0;
}

View file

@ -16,7 +16,7 @@ namespace UnitTest {
explicit RequiredCheckTestReporter(TestResults* results);
~RequiredCheckTestReporter();
bool next();
bool Next();
private:
TestResults* m_results;

View file

@ -25,7 +25,6 @@ namespace UnitTest {
private:
friend class RequiredCheckTestReporter;
private:
TestReporter* m_testReporter;
int m_totalTestCount;
int m_failedTestCount;

View file

@ -36,12 +36,12 @@ namespace UnitTest {
if(m_decoratedReporter) m_decoratedReporter->ReportSummary(totalTestCount, failedTestCount, failureCount, secondsElapsed);
}
TestReporter* ThrowingTestReporter::getDecorated() const
TestReporter* ThrowingTestReporter::GetDecorated() const
{
return m_decoratedReporter;
}
void ThrowingTestReporter::setDecorated(TestReporter* reporter)
void ThrowingTestReporter::SetDecorated(TestReporter* reporter)
{
m_decoratedReporter = reporter;
}

View file

@ -18,8 +18,8 @@ namespace UnitTest {
virtual void ReportTestFinish(TestDetails const& test, float secondsElapsed);
virtual void ReportSummary(int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed);
TestReporter* getDecorated() const;
void setDecorated(TestReporter* reporter);
TestReporter* GetDecorated() const;
void SetDecorated(TestReporter* reporter);
private:
TestReporter* m_decoratedReporter;