The directory_assume class contains a collection of static methods that implement the most directory assertions used in xtd::tUnit.
Public Static Methods | |
static void | are_equal (const xtd::io::directory_info &expected, const xtd::io::directory_info &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Assumes that two xtd::io::directory_info are equal. | |
static void | are_equal (const xtd::io::directory_info &expected, const xtd::io::directory_info &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Assumes that two xtd::io::directory_info are equal. | |
static void | are_not_equal (const xtd::io::directory_info &expected, const xtd::io::directory_info &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Assumes that two xtd::io::directory_info are not equal. | |
static void | are_not_equal (const xtd::io::directory_info &expected, const xtd::io::directory_info &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Assumes that two xtd::io::directory_info are not equal. | |
static void | does_not_exist (const xtd::io::directory_info &directory, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Asserts that directory not exists. | |
static void | does_not_exist (const xtd::io::directory_info &directory, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Assumes that directory not exists. | |
template<typename char_t > | |
static void | does_not_exist (const xtd::basic_string< char_t > &directory, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Assumes that file not exists. | |
template<typename char_t > | |
static void | does_not_exist (const xtd::basic_string< char_t > &directory, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Assumes that file not exists. | |
static void | exists (const xtd::io::directory_info &directory, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Assumes that directory exists. | |
static void | exists (const xtd::io::directory_info &directory, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Assumes that directory exists. | |
template<typename char_t > | |
static void | exists (const xtd::basic_string< char_t > &directory, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Assumes that directory exists. | |
template<typename char_t > | |
static void | exists (const xtd::basic_string< char_t > &directory, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Assumes that directory exists. | |
|
static |
Assumes that two xtd::io::directory_info are equal.
expected | the expected value. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::assert_error | If bad assertion. |
|
static |
Assumes that two xtd::io::directory_info 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::assert_error | If bad assertion. |
|
static |
Assumes that two xtd::io::directory_info are not equal.
expected | the expected value. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::assert_error | If bad assertion. |
|
static |
Assumes that two xtd::io::directory_info 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::assert_error | If bad assertion. |
|
static |
Asserts that directory not exists.
expected | the expected value. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::assert_error | If bad assertion. |
|
static |
Assumes that directory 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::assert_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 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. |
|
static |
Assumes that directory exists.
expected | the expected value. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::assert_error | If bad assertion. |
|
static |
Assumes that directory 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::assert_error | If bad assertion. |
|
inlinestatic |
Assumes that directory 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 directory 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. |