xtd - Reference Guide  0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
registered_test_class.h
Go to the documentation of this file.
1
4#pragma once
5#include "test_class.h"
6#include <memory>
7#include <string>
8
10namespace xtd {
12 namespace tunit {
20 public:
21 registered_test_class(const std::string& name, std::shared_ptr<xtd::tunit::test_class> test_class) noexcept : tc_(test_class) {tc_->name_ = name;}
22
23 private:
24 friend class xtd::tunit::unit_test;
25
26 const std::shared_ptr<xtd::tunit::test_class>& test() const noexcept {return tc_;}
27
28 std::shared_ptr<xtd::tunit::test_class> tc_;
29 };
30 }
31}
Represents the registered test class.
Definition registered_test_class.h:19
Definition test_class.h:25
Definition test.h:24
The template class.
Definition unit_test.h:32
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::tunit::test_class class.