xtd - Reference Guide
0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <file_assume.h>
The file_assume class contains a collection of static methods that implement the most file assertions used in xtd::tUnit.
Inherits xtd::tunit::base_assert.
Static Public Member Functions | |
template<typename Char > | |
static void | are_equal (const std::basic_istream< Char > &expected, const std::basic_istream< Char > &actual) |
Assumes that two files are equal. | |
template<typename Char > | |
static void | are_equal (const std::basic_istream< Char > &expected, const std::basic_istream< Char > &actual, const std::string &message) |
Assumes that two files are equal. | |
template<typename Char > | |
static void | are_equal (const std::basic_istream< Char > &expected, const std::basic_istream< Char > &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Assumes that two files are equal. | |
template<typename Char > | |
static void | are_equal (const std::basic_istream< Char > &expected, const std::basic_istream< Char > &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Assumes that two files are equal. | |
template<typename Char > | |
static void | are_equal (const std::basic_string< Char > &expected, const std::basic_string< Char > &actual) |
Assumes that two files are equal. | |
template<typename Char > | |
static void | are_equal (const std::basic_string< Char > &expected, const std::basic_string< Char > &actual, const std::string &message) |
Assumes that two files are equal. | |
template<typename Char > | |
static void | are_equal (const std::basic_string< Char > &expected, const std::basic_string< Char > &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Assumes that two files are equal. | |
template<typename Char > | |
static void | are_equal (const std::basic_string< Char > &expected, const std::basic_string< Char > &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Assumes that two files are equal. | |
template<typename Char > | |
static void | are_not_equal (const std::basic_istream< Char > &expected, const std::basic_istream< Char > &actual) |
Assumes that two files are not equal. | |
template<typename Char > | |
static void | are_not_equal (const std::basic_istream< Char > &expected, const std::basic_istream< Char > &actual, const std::string &message) |
Assumes that two files are not equal. | |
template<typename Char > | |
static void | are_not_equal (const std::basic_istream< Char > &expected, const std::basic_istream< Char > &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Assumes that two files are not equal. | |
template<typename Char > | |
static void | are_not_equal (const std::basic_istream< Char > &expected, const std::basic_istream< Char > &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Assumes that two files are not equal. | |
template<typename Char > | |
static void | are_not_equal (const std::basic_string< Char > &expected, const std::basic_string< Char > &actual) |
Assumes that two files are not equal. | |
template<typename Char > | |
static void | are_not_equal (const std::basic_string< Char > &expected, const std::basic_string< Char > &actual, const std::string &message) |
Assumes that two files are not equal. | |
template<typename Char > | |
static void | are_not_equal (const std::basic_string< Char > &expected, const std::basic_string< Char > &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Assumes that two files are not equal. | |
template<typename Char > | |
static void | are_not_equal (const std::basic_string< Char > &expected, const std::basic_string< Char > &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Assumes that two files are not equal. | |
template<typename Char > | |
static void | does_not_exist (const std::basic_string< Char > &file) |
Assumes that file not exists. | |
template<typename Char > | |
static void | does_not_exist (const std::basic_string< Char > &file, const std::string &message) |
Assumes that file not exists. | |
template<typename Char > | |
static void | does_not_exist (const std::basic_string< Char > &file, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Assumes that file not exists. | |
template<typename Char > | |
static void | does_not_exist (const std::basic_string< Char > &file, const xtd::diagnostics::stack_frame &stack_frame) |
Assumes that file not exists. | |
template<typename Char > | |
static void | exists (const std::basic_string< Char > &file) |
Assumes that file exists. | |
template<typename Char > | |
static void | exists (const std::basic_string< Char > &file, const std::string &message) |
Assumes that file exists. | |
template<typename Char > | |
static void | exists (const std::basic_string< Char > &file, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
Assumes that file exists. | |
template<typename Char > | |
static void | exists (const std::basic_string< Char > &file, const xtd::diagnostics::stack_frame &stack_frame) |
Assumes that file exists. | |
|
inlinestatic |
Assumes that two files are equal.
expected | the expected value. |
actual | the actual value. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are equal.
expected | the expected value. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are equal.
expected | the expected value. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are equal.
expected | the expected value. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are equal.
expected | the expected value. |
actual | the actual value. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are equal.
expected | the expected value. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are equal.
expected | the expected value. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are equal.
expected | the expected value. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are not equal.
expected | the expected value. |
actual | the actual value. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are not equal.
expected | the expected value. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are not equal.
expected | the expected value. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are not equal.
expected | the expected value. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are not equal.
expected | the expected value. |
actual | the actual value. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are not equal.
expected | the expected value. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are not equal.
expected | the expected value. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that two files are not equal.
expected | the expected value. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that file not exists.
expected | the expected value. |
actual | the actual value. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that file not exists.
expected | the expected value. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that file not exists.
expected | the expected value. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that file not exists.
expected | the expected value. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that file exists.
expected | the expected value. |
actual | the actual value. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that file exists.
expected | the expected value. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that file exists.
expected | the expected value. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Assumes that file exists.
expected | the expected value. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |