xtd 0.2.0
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 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
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
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.
ostream_unit_test(std::ostream &os) noexcept
Create a new console unit test with ostream specified.
void write_help()
Write usage help on the ostream of this instance.
bool parse_arguments(const xtd::array< xtd::string > &args) override
Parses the specified arguments.
std::ostream & ostream()
Gets the ostream used by 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
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
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.