tunit - Reference Guide  1.0.0
Modern c++17 unit testing framework on Windows, macOS, Linux, iOS and android.
test_class_attribute.h
Go to the documentation of this file.
1 #pragma once
4 #include "unit_test.h"
5 #include <memory>
6 #include <string>
7 
9 namespace tunit {
10  template <typename TestClass>
11  class test_class_attribute final {
12  public:
13  explicit test_class_attribute(const std::string& name) noexcept {tunit::unit_test::add({name, std::make_shared<TestClass>()});}
14  };
15 }
Definition: test_class_attribute.h:11
Contains tunit::unit_test class.
The tunit namespace contains a unit test library.
Definition: abort_error.h:8