The file_valid class contains a collection of static methods that implement the most file assertions used in xtd::tUnit.
- Namespace
- xtd::tunit
- Library
- xtd.tunit
- Examples
- This example show how to used some methods :
#include <xtd/xtd.tunit>
#include <stdexcept>
namespace unit_tests {
class test_class_(test) {
public:
void test_method_(test_case1) {
}
void test_method_(test_case2) {
}
void test_method_(test_case3) {
}
};
}
int main() {
return console_unit_test().run();
}
static void is_false(bool condition)
Asserts that ta condition is false.
Definition: assert.h:884
static void is_true(bool condition)
Asserts that ta condition is true.
Definition: assert.h:2489
static void does_not_throw(const std::function< void()> &statement)
Asserts that the staement does not throw an exception.
Definition: assert.h:709
The tunit namespace contains a unit test library.
Definition: abort_error.h:11
|
template<typename Char > |
static void | are_equal (const std::basic_istream< Char > &expected, const std::basic_istream< Char > &actual) |
| Validate that two files are equal. More...
|
|
template<typename Char > |
static void | are_equal (const std::basic_istream< Char > &expected, const std::basic_istream< Char > &actual, const std::string &message) |
| Validate that two files are equal. More...
|
|
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) |
| Validate that two files are equal. More...
|
|
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) |
| Validate that two files are equal. More...
|
|
template<typename Char > |
static void | are_equal (const std::basic_string< Char > &expected, const std::basic_string< Char > &actual) |
| Validate that two files are equal. More...
|
|
template<typename Char > |
static void | are_equal (const std::basic_string< Char > &expected, const std::basic_string< Char > &actual, const std::string &message) |
| Validate that two files are equal. More...
|
|
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) |
| Validate that two files are equal. More...
|
|
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) |
| Validate that two files are equal. More...
|
|
template<typename Char > |
static void | are_not_equal (const std::basic_istream< Char > &expected, const std::basic_istream< Char > &actual) |
| Validate that two files are not equal. More...
|
|
template<typename Char > |
static void | are_not_equal (const std::basic_istream< Char > &expected, const std::basic_istream< Char > &actual, const std::string &message) |
| Validate that two files are not equal. More...
|
|
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) |
| Validate that two files are not equal. More...
|
|
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) |
| Validate that two files are not equal. More...
|
|
template<typename Char > |
static void | are_not_equal (const std::basic_string< Char > &expected, const std::basic_string< Char > &actual) |
| Validate that two files are not equal. More...
|
|
template<typename Char > |
static void | are_not_equal (const std::basic_string< Char > &expected, const std::basic_string< Char > &actual, const std::string &message) |
| Validate that two files are not equal. More...
|
|
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) |
| Validate that two files are not equal. More...
|
|
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) |
| Validate that two files are not equal. More...
|
|
template<typename Char > |
static void | does_not_exist (const std::basic_string< Char > &file) |
| Validate that file not exists. More...
|
|
template<typename Char > |
static void | does_not_exist (const std::basic_string< Char > &file, const std::string &message) |
| Validate that file not exists. More...
|
|
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) |
| Validate that file not exists. More...
|
|
template<typename Char > |
static void | does_not_exist (const std::basic_string< Char > &file, const xtd::diagnostics::stack_frame &stack_frame) |
| Validate that file not exists. More...
|
|
template<typename Char > |
static void | exists (const std::basic_string< Char > &file) |
| Validate that file exists. More...
|
|
template<typename Char > |
static void | exists (const std::basic_string< Char > &file, const std::string &message) |
| Validate that file exists. More...
|
|
template<typename Char > |
static void | exists (const std::basic_string< Char > &file, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame) |
| Validate that file exists. More...
|
|
template<typename Char > |
static void | exists (const std::basic_string< Char > &file, const xtd::diagnostics::stack_frame &stack_frame) |
| Validate that file exists. More...
|
|