48 template<
typename char_t>
68 template<
typename char_t>
88 template<
typename char_t>
109 template<
typename char_t>
134 template<
typename char_t>
154 template<
typename char_t>
174 template<
typename char_t>
195 template<
typename char_t>
196 static void are_equal(
const std::basic_string<char_t>& expected,
const std::basic_string<char_t>& actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {
are_equal(std::basic_ifstream<char_t>(expected), std::basic_ifstream<char_t>(actual), message, stack_frame);}
199 template<
typename char_t>
201 template<
typename char_t>
202 static void are_equal(
const std::basic_string<char_t>& expected,
const char_t* actual,
const xtd::diagnostics::stack_frame& stack_frame) {are_equal(expected, actual,
"", stack_frame);}
203 template<
typename char_t>
204 static void are_equal(
const std::basic_string<char_t>& expected,
const char_t* actual,
const std::string& message) {are_equal(expected, actual, message,
xtd::diagnostics::stack_frame::empty());}
205 template<
typename char_t>
206 static void are_equal(
const std::basic_string<char_t>& expected,
const char_t* actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {are_equal(std::basic_ifstream<char_t>(expected), std::basic_ifstream<char_t>(actual), message, stack_frame);}
207 template<
typename char_t>
209 template<
typename char_t>
210 static void are_equal(
const char_t* expected,
const std::basic_string<char_t>& actual,
const xtd::diagnostics::stack_frame& stack_frame) {are_equal(expected, actual,
"", stack_frame);}
211 template<
typename char_t>
212 static void are_equal(
const char_t* expected,
const std::basic_string<char_t>& actual,
const std::string& message) {are_equal(expected, actual, message,
xtd::diagnostics::stack_frame::empty());}
213 template<
typename char_t>
214 static void are_equal(
const char_t* expected,
const std::basic_string<char_t>& actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {are_equal(std::basic_ifstream<char_t>(expected), std::basic_ifstream<char_t>(actual), message, stack_frame);}
215 template<
typename char_t>
217 template<
typename char_t>
218 static void are_equal(
const char_t* expected,
const char_t* actual,
const xtd::diagnostics::stack_frame& stack_frame) {are_equal(expected, actual,
"", stack_frame);}
219 template<
typename char_t>
221 template<
typename char_t>
222 static void are_equal(
const char_t* expected,
const char_t* actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {are_equal(std::basic_ifstream<char_t>(expected), std::basic_ifstream<char_t>(actual), message, stack_frame);}
242 template<
typename char_t>
262 template<
typename char_t>
282 template<
typename char_t>
303 template<
typename char_t>
328 template<
typename char_t>
348 template<
typename char_t>
368 template<
typename char_t>
389 template<
typename char_t>
390 static void are_not_equal(
const std::basic_string<char_t>& expected,
const std::basic_string<char_t>& actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {
are_not_equal(std::basic_ifstream<char_t>(expected), std::basic_ifstream<char_t>(actual), message, stack_frame);}
393 template<
typename char_t>
395 template<
typename char_t>
396 static void are_not_equal(
const std::basic_string<char_t>& expected,
const char_t* actual,
const xtd::diagnostics::stack_frame& stack_frame) {are_not_equal(expected, actual,
"", stack_frame);}
397 template<
typename char_t>
398 static void are_not_equal(
const std::basic_string<char_t>& expected,
const char_t* actual,
const std::string& message) {are_not_equal(expected, actual, message,
xtd::diagnostics::stack_frame::empty());}
399 template<
typename char_t>
400 static void are_not_equal(
const std::basic_string<char_t>& expected,
const char_t* actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {are_not_equal(std::basic_ifstream<char_t>(expected), std::basic_ifstream<char_t>(actual), message, stack_frame);}
401 template<
typename char_t>
403 template<
typename char_t>
404 static void are_not_equal(
const char_t* expected,
const std::basic_string<char_t>& actual,
const xtd::diagnostics::stack_frame& stack_frame) {are_not_equal(expected, actual,
"", stack_frame);}
405 template<
typename char_t>
406 static void are_not_equal(
const char_t* expected,
const std::basic_string<char_t>& actual,
const std::string& message) {are_not_equal(expected, actual, message,
xtd::diagnostics::stack_frame::empty());}
407 template<
typename char_t>
408 static void are_not_equal(
const char_t* expected,
const std::basic_string<char_t>& actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {are_not_equal(std::basic_ifstream<char_t>(expected), std::basic_ifstream<char_t>(actual), message, stack_frame);}
409 template<
typename char_t>
411 template<
typename char_t>
412 static void are_not_equal(
const char_t* expected,
const char_t* actual,
const xtd::diagnostics::stack_frame& stack_frame) {are_not_equal(expected, actual,
"", stack_frame);}
413 template<
typename char_t>
414 static void are_not_equal(
const char_t* expected,
const char_t* actual,
const std::string& message) {are_not_equal(expected, actual, message,
xtd::diagnostics::stack_frame::empty());}
415 template<
typename char_t>
416 static void are_not_equal(
const char_t* expected,
const char_t* actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {are_not_equal(std::basic_ifstream<char_t>(expected), std::basic_ifstream<char_t>(actual), message, stack_frame);}
430 template<
typename char_t>
444 template<
typename char_t>
458 template<
typename char_t>
473 template<
typename char_t>
483 template<
typename char_t>
485 template<
typename char_t>
487 template<
typename char_t>
489 template<
typename char_t>
490 static void does_not_exist(
const char_t* file,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {does_not_exist(std::basic_string<char_t>(file), message, stack_frame);}
504 template<
typename char_t>
518 template<
typename char_t>
532 template<
typename char_t>
547 template<
typename char_t>
557 template<
typename char_t>
559 template<
typename char_t>
561 template<
typename char_t>
563 template<
typename char_t>
564 static void exists(
const char_t* file,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame) {exists(std::basic_string<char_t>(file), message, stack_frame);}
The file_assume class contains a collection of static methods that implement the most file assertions...
Definition: file_assume.h:22
The base class for assert.
Definition: base_assert.h:29
Contains xtd::tunit::file_assert class.
static void are_not_equal(const std::basic_string< char_t > &expected, const std::basic_string< char_t > &actual, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two files are not equal.
Definition: file_assume.h:349
static void exists(const std::basic_string< char_t > &file, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that file exists.
Definition: file_assume.h:548
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
static void are_equal(const std::basic_string< char_t > &expected, const std::basic_string< char_t > &actual, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two files are equal.
Definition: file_assume.h:155
static void are_not_equal(const std::basic_string< char_t > &expected, const std::basic_string< char_t > &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two files are not equal.
Definition: file_assume.h:390
static void does_not_exist(const std::basic_string< char_t > &file, const std::string &message)
Assumes that file not exists.
Definition: file_assume.h:459
static void are_not_equal(const std::basic_istream< char_t > &expected, const std::basic_istream< char_t > &actual, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two files are not equal.
Definition: file_assume.h:263
static void abort()
Abort current test. This is used by the other assert functions.
static void are_equal(const std::basic_istream< char_t > &expected, const std::basic_istream< char_t > &actual, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two files are equal.
Definition: file_assume.h:69
static void are_not_equal(const std::basic_istream< char_t > &expected, const std::basic_istream< char_t > &actual)
Assumes that two files are not equal.
Definition: file_assume.h:243
Contains xtd::tunit::assume class.
static void does_not_exist(const std::basic_string< char_t > &file, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that file not exists.
Definition: file_assume.h:445
static void exists(const std::basic_string< char_t > &file, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that file exists.
Definition: file_assume.h:519
static void are_equal(const std::basic_string< char_t > &expected, const std::basic_string< char_t > &actual, const std::string &message)
Assumes that two files are equal.
Definition: file_assume.h:175
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition: stack_frame.h:37
static void are_equal(const std::basic_istream< char_t > &expected, const std::basic_istream< char_t > &actual)
Assumes that two files are equal.
Definition: file_assume.h:49
static stack_frame empty() noexcept
Return an empty stack frame.
static void are_equal(const std::basic_istream< char_t > &expected, const std::basic_istream< char_t > &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two files are equal.
Definition: file_assume.h:110
static void are_equal(const std::basic_istream< char_t > &expected, const std::basic_istream< char_t > &actual, const std::string &message)
Assumes that two files are equal.
Definition: file_assume.h:89
static void are_not_equal(const std::basic_istream< char_t > &expected, const std::basic_istream< char_t > &actual, const std::string &message)
Assumes that two files are not equal.
Definition: file_assume.h:283
static void exists(const std::basic_string< char_t > &file)
Assumes that file exists.
Definition: file_assume.h:505
static void are_equal(const std::basic_string< char_t > &expected, const std::basic_string< char_t > &actual)
Assumes that two files are equal.
Definition: file_assume.h:135
static void are_equal(const std::basic_string< char_t > &expected, const std::basic_string< char_t > &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two files are equal.
Definition: file_assume.h:196
static void does_not_exist(const std::basic_string< char_t > &file)
Assumes that file not exists.
Definition: file_assume.h:431
static void exists(const std::basic_string< char_t > &file, const std::string &message)
Assumes that file exists.
Definition: file_assume.h:533
static void are_equal(const std::basic_istream< char_t > &expected, const std::basic_istream< char_t > &actual)
Asserts that two files are equal.
Definition: file_assert.h:50
static void exists(const std::basic_string< char_t > &file)
Asserts that file exists.
Definition: file_assert.h:544
static void are_not_equal(const std::basic_string< char_t > &expected, const std::basic_string< char_t > &actual, const std::string &message)
Assumes that two files are not equal.
Definition: file_assume.h:369
static void are_not_equal(const std::basic_istream< char_t > &expected, const std::basic_istream< char_t > &actual, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two files are not equal.
Definition: file_assume.h:304
static void does_not_exist(const std::basic_string< char_t > &file, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that file not exists.
Definition: file_assume.h:474
static void does_not_exist(const std::basic_string< char_t > &file)
Asserts that file not exists.
Definition: file_assert.h:469
static void are_not_equal(const std::basic_istream< char_t > &expected, const std::basic_istream< char_t > &actual)
Asserts that two files are not equal.
Definition: file_assert.h:262
static void are_not_equal(const std::basic_string< char_t > &expected, const std::basic_string< char_t > &actual)
Assumes that two files are not equal.
Definition: file_assume.h:329