48 template<
typename char_t>
68 template<
typename char_t>
88 template<
typename char_t>
109 template<
typename char_t>
112 file_assert::are_equal(expected, actual, message, stack_frame);
134 template<
typename char_t>
154 template<
typename char_t>
174 template<
typename char_t>
195 template<
typename char_t>
199 template<
typename char_t>
201 template<
typename char_t>
203 template<
typename char_t>
205 template<
typename char_t>
206 static void are_equal(
const xtd::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>
211 template<
typename char_t>
213 template<
typename char_t>
214 static void are_equal(
const char_t* expected,
const xtd::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>
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>
306 file_assert::are_not_equal(expected, actual, message, stack_frame);
328 template<
typename char_t>
348 template<
typename char_t>
368 template<
typename char_t>
389 template<
typename char_t>
393 template<
typename char_t>
395 template<
typename char_t>
397 template<
typename char_t>
399 template<
typename char_t>
400 static void are_not_equal(
const xtd::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>
405 template<
typename char_t>
407 template<
typename char_t>
408 static void are_not_equal(
const char_t* expected,
const xtd::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>
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>
476 file_assert::does_not_exist(file, message, stack_frame);
483 template<
typename char_t>
485 template<
typename char_t>
487 template<
typename char_t>
489 template<
typename char_t>
504 template<
typename char_t>
518 template<
typename char_t>
532 template<
typename char_t>
547 template<
typename char_t>
550 file_assert::exists(file, message, stack_frame);
557 template<
typename char_t>
559 template<
typename char_t>
561 template<
typename char_t>
563 template<
typename char_t>
Contains xtd::tunit::assume class.
Represents text as a sequence of character units.
Definition basic_string.h:79
static const basic_string empty_string
Represents the empty basic_string.
Definition basic_string.h:124
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:46
static stack_frame empty() noexcept
Return an empty stack frame.
The base class for assert.
Definition base_assert.h:29
The file_assume class contains a collection of static methods that implement the most file assertions...
Definition file_assume.h:22
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, 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 xtd::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 are_not_equal(const xtd::basic_string< char_t > &expected, const xtd::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 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
static void are_equal(const xtd::basic_string< char_t > &expected, const xtd::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_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 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_equal(const xtd::basic_string< char_t > &expected, const xtd::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 xtd::basic_string< char_t > &file, const std::string &message)
Assumes that file not exists.
Definition file_assume.h:459
static void does_not_exist(const xtd::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 xtd::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
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 are_not_equal(const xtd::basic_string< char_t > &expected, const xtd::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 exists(const xtd::basic_string< char_t > &file)
Assumes that file exists.
Definition file_assume.h:505
static void are_equal(const xtd::basic_string< char_t > &expected, const xtd::basic_string< char_t > &actual)
Assumes that two files are equal.
Definition file_assume.h:135
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 void are_not_equal(const xtd::basic_string< char_t > &expected, const xtd::basic_string< char_t > &actual)
Assumes that two files are not equal.
Definition file_assume.h:329
static void are_not_equal(const xtd::basic_string< char_t > &expected, const xtd::basic_string< char_t > &actual, const std::string &message)
Assumes that two files are not equal.
Definition file_assume.h:369
static void exists(const xtd::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, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two files are equal.
Definition file_assume.h:110
static void exists(const xtd::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 xtd::basic_string< char_t > &expected, const xtd::basic_string< char_t > &actual, const std::string &message)
Assumes that two files are equal.
Definition file_assume.h:175
static void does_not_exist(const xtd::basic_string< char_t > &file)
Assumes that file not exists.
Definition file_assume.h:431
Contains xtd::tunit::file_assert class.
#define tunit_export_
Define shared library export.
Definition tunit_export.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10