blob: 7d4a7bca180bf313c332e6277aebf7956ab6fef6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 protos software gmbh (http://www.protos.de).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* CONTRIBUTORS:
* Juergen Haug (initial contribution)
*
*******************************************************************************/
#include "etTestSuite.h"
#include "etUnit/etUnit.h"
void etTestSuite::assertEquals(const int arg1, const int arg2) {
EXPECT_EQUAL_INT32(1, "", arg1, arg2);
}
void etTestSuite::run() {
etUnit_openTestSuite(m_suiteName.c_str());
runAllTestCases();
etUnit_closeTestSuite();
}
void etTestSuite::openTestCase(const std::string& name) {
m_caseId = etUnit_openTestCase(name.c_str());
}
void etTestSuite::closeTestCase(int id) {
etUnit_closeTestCase(m_caseId);
}