The ostream_unit_test class is ostream unit test interface.
Public Constructors | |
| ostream_unit_test (std::ostream &os) noexcept | |
| Create a new console unit test with ostream specified. | |
Public Properties | |
| std::ostream & | ostream () |
| Gets the ostream used by this instance. | |
Public Methods | |
| int | count_tests (int32 count) override |
| Counts the test names contained in the specified tests. | |
| int | list_tests (const xtd::array< xtd::string > &tests) override |
| Lists the test names contained in the specified tests. | |
| bool | parse_arguments (const xtd::array< xtd::string > &args) override |
| Parses the specified arguments. | |
| void | write_help () |
| Write usage help on the ostream of this instance. | |
Additional Inherited Members | |
| unit_test (xtd::uptr< xtd::tunit::event_listener > event_listener) noexcept | |
| Initializes a new instance of xtd::tunit::unit_test with specified xtd::tunit::event_listener. | |
| int32 | repeat_iteration () const noexcept |
| Gets the repeat iteration number. A number between 0 and xtd::tunit::unit_test::repeat_iteration_count. | |
| int32 | repeat_iteration_count () const noexcept |
| Gets the repeat iteration count. | |
| bool | repeat_tests () const noexcept |
| Gets a boolean indictaes if there is repeat tests. | |
| size_t | test_cases_count () const noexcept |
| Gets the test cases count. | |
| size_t | test_count () const noexcept |
| Gets the test count. | |
| size_t | aborted_test_count () const noexcept |
| Gets the aborted test count. | |
| xtd::array< xtd::string > | aborted_test_names () const noexcept |
| Gets the array of aborted test names. | |
| xtd::time_span | elapsed_time () const noexcept |
| Gets the elapsed time for the execution of all tests in the unit test. | |
| size_t | ignored_test_count () const noexcept |
| Gets the ignored test count. | |
| xtd::array< xtd::string > | ignored_test_names () const noexcept |
| Gets the array of ignored test names. | |
| size_t | failed_test_count () const noexcept |
| Gets the failed test count. | |
| xtd::array< xtd::string > | failed_test_names () const noexcept |
| Gets the array of failed test names. | |
| size_t | succeed_test_count () const noexcept |
| Gets the succeed test count. | |
| xtd::array< xtd::string > | succeed_test_names () const noexcept |
| Gets the array of succeed test names. | |
| int32 | run () noexcept |
| Runs all tests in this unit_test object and prints the result. | |
|
explicitnoexcept |
Create a new console unit test with ostream specified.
| os | The ostream to write events. |
| std::ostream & xtd::tunit::ostream_unit_test::ostream | ( | ) |
Gets the ostream used by this instance.
|
overridevirtual |
Counts the test names contained in the specified tests.
| count | The tests count. |
Reimplemented from xtd::tunit::unit_test.
|
overridevirtual |
Lists the test names contained in the specified tests.
| tests | The list of test names. |
Reimplemented from xtd::tunit::unit_test.
|
overridevirtual |
Parses the specified arguments.
| The | arguments to parse. |
true the execution process stops immediately after the analysis of the arguments; otherwise false the execution process continues its execution. -help argument is passed. Reimplemented from xtd::tunit::unit_test.
| void xtd::tunit::ostream_unit_test::write_help | ( | ) |
Write usage help on the ostream of this instance.