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
std::ostream&
ostream
();
41
43
45
int
count_tests
(
int32
count)
override
;
46
int
list_tests
(
const
xtd::array<xtd::string>
& tests)
override
;
47
bool
parse_arguments
(
const
xtd::array<xtd::string>
& args)
override
;
48
50
void
write_help
();
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::count_tests
int count_tests(int32 count) override
Counts the test names contained in the specified tests.
xtd::tunit::ostream_unit_test::list_tests
int list_tests(const xtd::array< xtd::string > &tests) override
Lists the test names contained in the specified tests.
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::write_help
void write_help()
Write usage help on the ostream of this instance.
xtd::tunit::ostream_unit_test::parse_arguments
bool parse_arguments(const xtd::array< xtd::string > &args) override
Parses the specified arguments.
xtd::tunit::ostream_unit_test::ostream
std::ostream & ostream()
Gets the ostream used by 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.