One option for suites/tests.

This commit is contained in:
2023-04-02 17:02:13 -07:00
parent 1dce48f049
commit d813d837ea
2 changed files with 35 additions and 3 deletions

View File

@@ -15,7 +15,28 @@ using std::wcout;
// const vector<wstring>& might stop being a reference
testresults_t test_ClassToTest_main(int argc, const vector<wstring>& argv) {
return make_testresults();
auto results = describe(L"ClassToTest", [](){
auto results = make_testresults();
results += it(L"should do the thing", [](){
});
results += it(L"should do the other thing", [](){
});
results += it(L"should not do the bad thing", [](){
});
results += it(L"should throw an exception if we do the other bad thing", [](){
});
return results;
}, make_describe_options().beforeEach([](){}).afterEach([](){}).beforeAll([](){}).afterAll([](){}));
return results;
}
// Dummy test harness