xtd 0.2.0
Loading...
Searching...
No Matches
ostream_unit_test.h
Go to the documentation of this file.
1
4#pragma once
6#include "unit_test.h"
7#include <ostream>
8#include <map>
9#include <vector>
10
12namespace xtd {
14 namespace tunit {
23 public:
25
29 explicit ostream_unit_test(std::ostream& os) noexcept;
30
35 ostream_unit_test(std::ostream& os, int argc, char* argv[]) noexcept;
37
39
44 std::ostream& ostream();
46
48
50 int count_tests(int32 count) override;
51 int list_tests(const std::vector<xtd::string>& tests) override;
52 bool parse_arguments(const std::vector<xtd::string>& args) override;
53
55 void write_help();
57
58 private:
59 std::ostream& os_;
60 };
61 }
62}
63
The ostream_unit_test class is ostream unit test interface.
Definition ostream_unit_test.h:22
int count_tests(int32 count) override
Counts the test names contained in the specified tests.
ostream_unit_test(std::ostream &os, int argc, char *argv[]) noexcept
Create a new console unit test with ostream specified, argv specified and argc specified.
int list_tests(const std::vector< 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 std::vector< 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.h:28
#define tunit_export_
Define shared library export.
Definition tunit_export.h:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::tunit::ostream_event_listener class.
Contains xtd::tunit::unit_test class.