xtd 0.2.0
Loading...
Searching...
No Matches
string_assume.h
Go to the documentation of this file.
1
4#pragma once
5#include "assume.h"
6#include "string_assert.h"
7
9namespace xtd {
11 namespace tunit {
22 class tunit_export_ string_assume final : private base_assert {
23 public:
25 string_assume() = delete;
27
29
40 static void are_equal_ignoring_case(const xtd::string& expected, const xtd::string& actual);
51 static void are_equal_ignoring_case(const xtd::string& expected, const xtd::string& actual, const xtd::diagnostics::stack_frame& stack_frame);
62 static void are_equal_ignoring_case(const xtd::string& expected, const xtd::string& actual, const xtd::string& message);
74 static void are_equal_ignoring_case(const xtd::string& expected, const xtd::string& actual, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame);
75
85 static void are_not_equal_ignoring_case(const xtd::string& expected, const xtd::string& actual);
96 static void are_not_equal_ignoring_case(const xtd::string& expected, const xtd::string& actual, const xtd::diagnostics::stack_frame& stack_frame);
107 static void are_not_equal_ignoring_case(const xtd::string& expected, const xtd::string& actual, const xtd::string& message);
119 static void are_not_equal_ignoring_case(const xtd::string& expected, const xtd::string& actual, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame);
120
131 static void contains(const xtd::string& item, const xtd::string& string);
143 static void contains(const xtd::string& item, const xtd::string& string, const xtd::diagnostics::stack_frame& stack_frame);
155 static void contains(const xtd::string& item, const xtd::string& string, const xtd::string& message);
168 static void contains(const xtd::string& item, const xtd::string& string, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame);
169
180 static void does_not_contain(const xtd::string& item, const xtd::string& string);
192 static void does_not_contain(const xtd::string& item, const xtd::string& string, const xtd::diagnostics::stack_frame& stack_frame);
204 static void does_not_contain(const xtd::string& item, const xtd::string& string, const xtd::string& message);
217 static void does_not_contain(const xtd::string& item, const xtd::string& string, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame);
218
229 static void does_not_end_with(const xtd::string& item, const xtd::string& string);
230
242 static void does_not_end_with(const xtd::string& item, const xtd::string& string, const xtd::diagnostics::stack_frame& stack_frame);
243
255 static void does_not_end_with(const xtd::string& item, const xtd::string& string, const xtd::string& message);
256
269 static void does_not_end_with(const xtd::string& item, const xtd::string& string, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame);
270
280 static void does_not_match(const xtd::string& regex_pattern, const xtd::string& actual);
291 static void does_not_match(const xtd::string& regex_pattern, const xtd::string& actual, const xtd::diagnostics::stack_frame& stack_frame);
302 static void does_not_match(const xtd::string& regex_pattern, const xtd::string& actual, const xtd::string& message);
314 static void does_not_match(const xtd::string& regex_pattern, const xtd::string& actual, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame);
315
326 static void does_not_start_with(const xtd::string& item, const xtd::string& string);
338 static void does_not_start_with(const xtd::string& item, const xtd::string& string, const xtd::diagnostics::stack_frame& stack_frame);
350 static void does_not_start_with(const xtd::string& item, const xtd::string& string, const xtd::string& message);
363 static void does_not_start_with(const xtd::string& item, const xtd::string& string, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame);
364
375 static void ends_with(const xtd::string& item, const xtd::string& string);
387 static void ends_with(const xtd::string& item, const xtd::string& string, const xtd::diagnostics::stack_frame& stack_frame);
399 static void ends_with(const xtd::string& item, const xtd::string& string, const xtd::string& message);
412 static void ends_with(const xtd::string& item, const xtd::string& string, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame);
413
423 static void matches(const xtd::string& regex_pattern, const xtd::string& actual);
434 static void matches(const xtd::string& regex_pattern, const xtd::string& actual, const xtd::diagnostics::stack_frame& stack_frame);
445 static void matches(const xtd::string& regex_pattern, const xtd::string& actual, const xtd::string& message);
457 static void matches(const xtd::string& regex_pattern, const xtd::string& actual, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame);
458
469 static void starts_with(const xtd::string& item, const xtd::string& string);
481 static void starts_with(const xtd::string& item, const xtd::string& string, const xtd::diagnostics::stack_frame& stack_frame);
493 static void starts_with(const xtd::string& item, const xtd::string& string, const xtd::string& message);
506 static void starts_with(const xtd::string& item, const xtd::string& string, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame);
508 };
509 }
510}
Contains xtd::tunit::assume class.
Represents text as a sequence of character units.
Definition basic_string.h:79
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:47
The base class for assert.
Definition base_assert.h:29
The string_assume class contains a collection of static methods that implement the most string assert...
Definition string_assume.h:22
static void are_not_equal_ignoring_case(const xtd::string &expected, const xtd::string &actual, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two type are not equal ignoring case.
static void does_not_end_with(const xtd::string &item, const xtd::string &string, const xtd::string &message)
Validates that string starts with item.
static void are_not_equal_ignoring_case(const xtd::string &expected, const xtd::string &actual)
Validates that two type are not equal ignoring case.
static void contains(const xtd::string &item, const xtd::string &string, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that string contains an item.
static void are_equal_ignoring_case(const xtd::string &expected, const xtd::string &actual, const xtd::string &message)
Validates that two type are equal ignoring case.
static void does_not_start_with(const xtd::string &item, const xtd::string &string)
Validates that string does not start with a specific item.
static void does_not_match(const xtd::string &regex_pattern, const xtd::string &actual, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that does not match regex pattern.
static void contains(const xtd::string &item, const xtd::string &string)
Validates that string contains an item.
static void starts_with(const xtd::string &item, const xtd::string &string, const xtd::string &message)
Validates that string starts with item.
static void does_not_start_with(const xtd::string &item, const xtd::string &string, const xtd::string &message)
Validates that string starts with item.
static void does_not_match(const xtd::string &regex_pattern, const xtd::string &actual, const xtd::string &message)
Validates that does not match regex pattern.
static void does_not_match(const xtd::string &regex_pattern, const xtd::string &actual, const xtd::diagnostics::stack_frame &stack_frame)
Validates that does not match regex pattern.
static void contains(const xtd::string &item, const xtd::string &string, const xtd::diagnostics::stack_frame &stack_frame)
Validates that string contains an item.
static void does_not_contain(const xtd::string &item, const xtd::string &string, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that string contains an item.
static void are_not_equal_ignoring_case(const xtd::string &expected, const xtd::string &actual, const xtd::string &message)
Validates that two type are not equal ignoring case.
static void ends_with(const xtd::string &item, const xtd::string &string, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that string starts with item.
static void contains(const xtd::string &item, const xtd::string &string, const xtd::string &message)
Validates that string contains an item.
static void are_equal_ignoring_case(const xtd::string &expected, const xtd::string &actual, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two type are equal ignoring case.
static void does_not_end_with(const xtd::string &item, const xtd::string &string, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that string starts with item.
static void does_not_start_with(const xtd::string &item, const xtd::string &string, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that string starts with item.
static void does_not_start_with(const xtd::string &item, const xtd::string &string, const xtd::diagnostics::stack_frame &stack_frame)
Validates that string starts with item.
static void ends_with(const xtd::string &item, const xtd::string &string)
Validates that string ends with a specific item.
static void does_not_end_with(const xtd::string &item, const xtd::string &string, const xtd::diagnostics::stack_frame &stack_frame)
Validates that string starts with item.
static void does_not_contain(const xtd::string &item, const xtd::string &string, const xtd::diagnostics::stack_frame &stack_frame)
Validates that string contains an item.
static void does_not_contain(const xtd::string &item, const xtd::string &string)
Validates that string contains an item.
static void matches(const xtd::string &regex_pattern, const xtd::string &actual)
Validates that matches regex pattern.
static void matches(const xtd::string &regex_pattern, const xtd::string &actual, const xtd::string &message)
Validates that matches regex pattern.
static void are_equal_ignoring_case(const xtd::string &expected, const xtd::string &actual)
Validates that two type are equal ignoring case.
static void starts_with(const xtd::string &item, const xtd::string &string)
Validates that string starts with a specific item.
static void does_not_contain(const xtd::string &item, const xtd::string &string, const xtd::string &message)
Validates that string contains an item.
static void starts_with(const xtd::string &item, const xtd::string &string, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that string starts with item.
static void are_not_equal_ignoring_case(const xtd::string &expected, const xtd::string &actual, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two type are not equal ignoring case.
static void does_not_end_with(const xtd::string &item, const xtd::string &string)
Validates that string does not end with a specific item.
static void ends_with(const xtd::string &item, const xtd::string &string, const xtd::diagnostics::stack_frame &stack_frame)
Validates that string starts with item.
static void are_equal_ignoring_case(const xtd::string &expected, const xtd::string &actual, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two type are equal ignoring case.
static void ends_with(const xtd::string &item, const xtd::string &string, const xtd::string &message)
Validates that string starts with item.
static void matches(const xtd::string &regex_pattern, const xtd::string &actual, const xtd::diagnostics::stack_frame &stack_frame)
Validates that matches regex pattern.
static void matches(const xtd::string &regex_pattern, const xtd::string &actual, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that matches regex pattern.
static void does_not_match(const xtd::string &regex_pattern, const xtd::string &actual)
Validates that does not match regex pattern.
static void starts_with(const xtd::string &item, const xtd::string &string, const xtd::diagnostics::stack_frame &stack_frame)
Validates that string starts with item.
#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
Contains xtd::tunit::string_assert class.