mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 14:47:30 -05:00
* Added support for bitbucket repositories: * added variable BITBUCKET_REPOSITORY * added short syntax in form "bb:user/repo" * added description of that to readme.md * Added test for bitbucket short syntax * Used elseif syntax in handling of git services (github, gitlab, bitbucket). * Added HEMRND/TestingFramework example located on bitbucket.org * Reformatted CMakeLists.txt in TestingFramework example * Bumped version of TestingFramework. It supports older version of c++ standard. Co-authored-by: Paweł Gorgoń <pgorgon@hem-e.com>
19 lines
357 B
C++
19 lines
357 B
C++
#include <HEM/TestingFramework.hpp>
|
|
|
|
using namespace fakeit;
|
|
|
|
class ITest {
|
|
public:
|
|
virtual int getInt() = 0;
|
|
};
|
|
|
|
TEST_CASE("Testing Framework Test") {
|
|
constexpr int someIntValue = 123456;
|
|
|
|
Mock<ITest> testMock;
|
|
When(Method(testMock, getInt)).Return(someIntValue);
|
|
|
|
int readValue = testMock.get().getInt();
|
|
|
|
REQUIRE(readValue == someIntValue);
|
|
} |