49 template<
class char_t>
69 template<
class char_t>
94 template<
class char_t>
114 template<
class char_t>
118 template<
class char_t>
120 template<
class char_t>
122 template<
class char_t>
124 template<
class char_t>
125 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 =
xtd::diagnostics::stack_frame::current()) {are_equal(std::basic_ifstream<char_t>(expected), std::basic_ifstream<char_t>(actual), message, stack_frame);}
126 template<
class char_t>
127 static void are_equal(
const char_t* expected,
const char_t* actual,
const xtd::diagnostics::stack_frame& stack_frame =
xtd::diagnostics::stack_frame::current()) {are_equal(expected, actual, xtd::string::empty_string, stack_frame);}
128 template<
class char_t>
129 static void are_equal(
const char_t* expected,
const char_t* actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame =
xtd::diagnostics::stack_frame::current()) {are_equal(std::basic_ifstream<char_t>(expected), std::basic_ifstream<char_t>(actual), message, stack_frame);}
149 template<
class char_t>
169 template<
class char_t>
194 template<
class char_t>
214 template<
class char_t>
218 template<
class char_t>
220 template<
class char_t>
222 template<
class char_t>
224 template<
class char_t>
225 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 =
xtd::diagnostics::stack_frame::current()) {are_not_equal(std::basic_ifstream<char_t>(expected), std::basic_ifstream<char_t>(actual), message, stack_frame);}
226 template<
class char_t>
227 static void are_not_equal(
const char_t* expected,
const char_t* actual,
const xtd::diagnostics::stack_frame& stack_frame =
xtd::diagnostics::stack_frame::current()) {are_not_equal(expected, actual, xtd::string::empty_string, stack_frame);}
228 template<
class char_t>
229 static void are_not_equal(
const char_t* expected,
const char_t* actual,
const std::string& message,
const xtd::diagnostics::stack_frame& stack_frame =
xtd::diagnostics::stack_frame::current()) {are_not_equal(std::basic_ifstream<char_t>(expected), std::basic_ifstream<char_t>(actual), message, stack_frame);}
243 template<
class char_t>
257 template<
class char_t>
267 template<
class char_t>
269 template<
class char_t>
284 template<
class char_t>
298 template<
class char_t>
308 template<
class char_t>
310 template<
class char_t>
Represents text as a sequence of character units.
Definition basic_string.hpp:71
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.hpp:48
static stack_frame current(const xtd::diagnostics::source_location &value=xtd::diagnostics::source_location::current()) noexcept
Crates a new xtd::diagnostics::stack_frame object corresponding to the location of the call site.
The base class for assert.
Definition base_assert.hpp:30
static void error()
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
static void does_not_exist(const xtd::basic_string< char_t > &file, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that file not exists.
Definition file_assert.hpp:289
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=xtd::diagnostics::stack_frame::current())
Asserts that two files are not equal.
Definition file_assert.hpp:173
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=xtd::diagnostics::stack_frame::current())
Asserts that two files are equal.
Definition file_assert.hpp:51
static void exists(const xtd::basic_string< char_t > &file, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Asserts that file exists.
Definition file_assert.hpp:330
The file_valid class contains a collection of static methods that implement the most file assertions ...
Definition file_valid.hpp:23
static void does_not_exist(const xtd::basic_string< char_t > &file, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validate that file not exists.
Definition file_valid.hpp:244
static void exists(const xtd::basic_string< char_t > &file, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validate that file exists.
Definition file_valid.hpp:299
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=xtd::diagnostics::stack_frame::current())
Validate that two files are equal.
Definition file_valid.hpp:115
static void exists(const xtd::basic_string< char_t > &file, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validate that file exists.
Definition file_valid.hpp:285
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=xtd::diagnostics::stack_frame::current())
Validate that two files are not equal.
Definition file_valid.hpp:195
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=xtd::diagnostics::stack_frame::current())
Validate that two files are not equal.
Definition file_valid.hpp:215
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=xtd::diagnostics::stack_frame::current())
Validate that two files are equal.
Definition file_valid.hpp:70
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=xtd::diagnostics::stack_frame::current())
Validate that two files are not equal.
Definition file_valid.hpp:170
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=xtd::diagnostics::stack_frame::current())
Validate that two files are not equal.
Definition file_valid.hpp:150
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=xtd::diagnostics::stack_frame::current())
Validate that two files are equal.
Definition file_valid.hpp:95
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=xtd::diagnostics::stack_frame::current())
Validate that two files are equal.
Definition file_valid.hpp:50
static void does_not_exist(const xtd::basic_string< char_t > &file, const std::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Validate that file not exists.
Definition file_valid.hpp:258
Contains xtd::tunit::file_assert class.
#define tunit_export_
Define shared library export.
Definition tunit_export.hpp:13
The tunit namespace contains a unit test library.
Definition abort_error.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::tunit::valid class.