xtd 1.0.0
Loading...
Searching...
No Matches
ostream_unit_test.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "unit_test.hpp"
7#include <ostream>
8#include <map>
9#include <vector>
10
12namespace xtd {
14 namespace tunit {
23 public:
25
30 explicit ostream_unit_test(std::ostream& os) noexcept;
32
34
39 [[nodiscard]] auto ostream() -> std::ostream&;
41
43
45 [[nodiscard]] auto count_tests(xtd::int32 count) -> xtd::int32 override;
46 [[nodiscard]] auto list_tests(const xtd::array<xtd::string>& tests) -> xtd::int32 override;
47 [[nodiscard]] auto parse_arguments(const xtd::array<xtd::string>& args) -> bool override;
48
50 auto write_help() -> void;
52
53 private:
54 std::ostream& os_;
55 };
56 }
57}
58
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
auto list_tests(const xtd::array< xtd::string > &tests) -> xtd::int32 override
Lists the test names contained in the specified tests.
auto ostream() -> std::ostream &
Gets the ostream used by this instance.
ostream_unit_test(std::ostream &os) noexcept
Create a new console unit test with ostream specified.
auto count_tests(xtd::int32 count) -> xtd::int32 override
Counts the test names contained in the specified tests.
auto parse_arguments(const xtd::array< xtd::string > &args) -> bool override
Parses the specified arguments.
auto write_help() -> void
Write usage help on the ostream of this instance.
The unit_test class is unit test base interface.
Definition unit_test.hpp:30
#define tunit_export_
Define shared library export.
Definition tunit_export.hpp:13
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.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::ostream_event_listener class.
Contains xtd::tunit::unit_test class.