xtd 0.2.0
registered_test_class.h
Go to the documentation of this file.
1 #pragma once
5 #include "test_class.h"
6 #include "../tunit_export.h"
7 #include <xtd/ustring>
8 #include <memory>
9 
11 namespace xtd {
13  namespace tunit {
20  class tunit_export_ registered_test_class final {
21  public:
23 
28  registered_test_class(const xtd::ustring& name, std::shared_ptr<xtd::tunit::test_class> test_class) noexcept;
30 
31  private:
32  friend class xtd::tunit::unit_test;
33 
34  const std::shared_ptr<xtd::tunit::test_class>& test() const noexcept;
35 
36  std::shared_ptr<xtd::tunit::test_class> tc_;
37  };
38  }
39 }
Represents a test method.
Definition: test.h:31
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Represents a test class.
Definition: test_class.h:39
Contains xtd::tunit::test_class class.
Represents the registered test class.
Definition: registered_test_class.h:20
The unit_test class is unit test base interface.
Definition: unit_test.h:35