xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
test_class_attribute.h
Go to the documentation of this file.
1 #pragma once
5 #include "unit_test.h"
6 #include <memory>
7 #include <string>
8 
10 namespace xtd {
12  namespace tunit {
13  template <typename test_class_t>
14  class test_class_attribute final {
15  public:
16  explicit test_class_attribute(const std::string& name) noexcept {xtd::tunit::unit_test::add({name, std::make_shared<test_class_t>()});}
17  };
18  }
19 }
Definition: test_class_attribute.h:14
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::tunit::unit_test class.