xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.tunit
include
xtd
tunit
ostream_unit_test.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
ostream_event_listener.hpp
"
6
#include "
unit_test.hpp
"
7
#include <ostream>
8
#include <map>
9
#include <vector>
10
12
namespace
xtd
{
14
namespace
tunit
{
22
class
tunit_export_
ostream_unit_test
:
public
xtd::tunit::unit_test
{
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
xtd::array
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition
array.hpp:64
xtd::tunit::ostream_unit_test::list_tests
auto list_tests(const xtd::array< xtd::string > &tests) -> xtd::int32 override
Lists the test names contained in the specified tests.
xtd::tunit::ostream_unit_test::ostream
auto ostream() -> std::ostream &
Gets the ostream used by this instance.
xtd::tunit::ostream_unit_test::ostream_unit_test
ostream_unit_test(std::ostream &os) noexcept
Create a new console unit test with ostream specified.
xtd::tunit::ostream_unit_test::count_tests
auto count_tests(xtd::int32 count) -> xtd::int32 override
Counts the test names contained in the specified tests.
xtd::tunit::ostream_unit_test::parse_arguments
auto parse_arguments(const xtd::array< xtd::string > &args) -> bool override
Parses the specified arguments.
xtd::tunit::ostream_unit_test::write_help
auto write_help() -> void
Write usage help on the ostream of this instance.
xtd::tunit::unit_test
The unit_test class is unit test base interface.
Definition
unit_test.hpp:30
tunit_export_
#define tunit_export_
Define shared library export.
Definition
tunit_export.hpp:13
xtd::int32
std::int32_t int32
Represents a 32-bit signed integer.
Definition
int32.hpp:25
xtd::tunit
The tunit namespace contains a unit test library.
Definition
abort_error.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
ostream_event_listener.hpp
Contains xtd::tunit::ostream_event_listener class.
unit_test.hpp
Contains xtd::tunit::unit_test class.
Generated on
for xtd by
Gammasoft
. All rights reserved.