xtd 0.2.0
registered_test_class.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "test_class.hpp"
6#include "../tunit_export.hpp"
7#include <xtd/string>
8#include <memory>
9
11namespace xtd {
13 namespace tunit {
21 public:
23
27
33
34 private:
35 friend class xtd::tunit::unit_test;
36
37 const xtd::sptr<xtd::tunit::test_class>& test() const noexcept;
38
39 xtd::sptr<xtd::tunit::test_class> tc_;
40 };
41 }
42}
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
registered_test_class(const xtd::string &name, xtd::sptr< xtd::tunit::test_class > test_class) noexcept
Creates a new registered_test_class instance.
registered_test_class()=default
Creates a new registered_test_class instance.
Represents a test class.
Definition test_class.hpp:39
The unit_test class is unit test base interface.
Definition unit_test.hpp:29
#define tunit_export_
Define shared library export.
Definition tunit_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
The tunit namespace contains a unit test library.
Definition abort_error.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::tunit::test_class class.
Contains tunit_export_ keyword.