27 #if defined(__cpp_lib_filesystem)
37 static void are_equal(
const std::filesystem::directory_entry& expected,
const std::filesystem::directory_entry& actual) {are_equal(expected, actual,
"",
xtd::diagnostics::stack_frame::empty());}
49 static void are_equal(
const std::filesystem::directory_entry& expected,
const std::filesystem::directory_entry& actual,
const xtd::diagnostics::stack_frame& stack_frame) {are_equal(expected, actual,
"", stack_frame);}
61 static void are_equal(
const std::filesystem::directory_entry& expected,
const std::filesystem::directory_entry& actual,
const std::string& message) {are_equal(expected, actual, message,
xtd::diagnostics::stack_frame::empty());}
74 static void are_equal(
const std::filesystem::directory_entry& expected,
const std::filesystem::directory_entry& actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {
76 directory_assert::are_equal(expected, actual, message, stack_frame);
91 static void are_not_equal(
const std::filesystem::directory_entry& expected,
const std::filesystem::directory_entry& actual) {are_not_equal(expected, actual,
"",
xtd::diagnostics::stack_frame::empty());}
103 static void are_not_equal(
const std::filesystem::directory_entry& expected,
const std::filesystem::directory_entry& actual,
const xtd::diagnostics::stack_frame& stack_frame) {are_not_equal(expected, actual,
"", stack_frame);}
115 static void are_not_equal(
const std::filesystem::directory_entry& expected,
const std::filesystem::directory_entry& actual,
const std::string& message) {are_not_equal(expected, actual, message,
xtd::diagnostics::stack_frame::empty());}
128 static void are_not_equal(
const std::filesystem::directory_entry& expected,
const std::filesystem::directory_entry& actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {
130 directory_assert::are_not_equal(expected, actual, message, stack_frame);
132 base_assert::error();
147 template<
typename Char>
161 template<
typename Char>
175 template<
typename Char>
190 template<
typename Char>
195 base_assert::error();
200 template<
typename Char>
202 template<
typename Char>
204 template<
typename Char>
206 template<
typename Char>
220 template<
typename Char>
234 template<
typename Char>
248 template<
typename Char>
263 template<
typename Char>
268 base_assert::error();
273 template<
typename Char>
275 template<
typename Char>
277 template<
typename Char>
279 template<
typename Char>
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition: stack_frame.h:29
static stack_frame empty() noexcept
Return an empty stack frame.
The base class for assert.
Definition: base_assert.h:25
static void exists(const std::basic_string< Char > &directory)
Asserts that directory exists.
Definition: directory_assert.h:158
static void does_not_exist(const std::basic_string< Char > &directory)
Asserts that file not exists.
Definition: directory_assert.h:235
The directory_valid class contains a collection of static methods that implement the most directory a...
Definition: directory_valid.h:21
static void does_not_exist(const std::basic_string< Char > &directory, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that file not exists.
Definition: directory_valid.h:264
static void does_not_exist(const std::basic_string< Char > &directory, const std::string &message)
Asserts that file not exists.
Definition: directory_valid.h:249
static void exists(const std::basic_string< Char > &directory, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that directory exists.
Definition: directory_valid.h:191
static void does_not_exist(const std::basic_string< Char > &directory, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that file not exists.
Definition: directory_valid.h:235
static void exists(const std::basic_string< Char > &directory)
Asserts that directory exists.
Definition: directory_valid.h:148
static void exists(const std::basic_string< Char > &directory, const xtd::diagnostics::stack_frame &stack_frame)
Asserts that directory exists.
Definition: directory_valid.h:162
static void does_not_exist(const std::basic_string< Char > &directory)
Asserts that file not exists.
Definition: directory_valid.h:221
static void exists(const std::basic_string< Char > &directory, const std::string &message)
Asserts that directory exists.
Definition: directory_valid.h:176
Contains xtd::tunit::directory_assert class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::tunit::valid class.