22const std::string Assert::ARGUMENT =
"Argument [";
23const std::string Assert::CONDITION =
"Condition [";
24const std::string Assert::HAS_A_VALUE =
"] has a value [";
25const std::string Assert::LESS_THAN =
"] less than [";
26const std::string Assert::GREATER_THAN =
"] greater than [";
27const std::string Assert::IS_NULL =
"] is null.";
28const std::string Assert::IS_EMPTY =
"] is empty.";
29const std::string Assert::IS_FALSE =
"] is false.";
30const std::string Assert::IS_NOT_HEX =
"] is not a hex string.";
31const std::string Assert::NOT_EQUAL_TO =
"] not equal to [";
32const std::string Assert::CLOSING_BRACKET =
"].";
55 if (obj.size() == 0) {
73 if (number < minValue) {
77 std::to_string(number) +
79 std::to_string(minValue) +
88 if (number != value) {
92 std::to_string(number) +
94 std::to_string(value) +
102 const size_t minValue,
103 const size_t maxValue,
104 const std::string& name)
106 if (number < minValue) {
110 std::to_string(number) +
112 std::to_string(minValue) +
114 }
else if (number > maxValue) {
118 std::to_string(number) +
120 std::to_string(maxValue) +
Assert & isInRange(const size_t number, const size_t minValue, const size_t maxValue, const std::string &name)
Assert & isHexString(const std::string &hex, const std::string &name)
static Assert & getInstance()
Assert & greaterOrEqual(const size_t number, const size_t minValue, const std::string &name)
Assert & notEmpty(const std::string &obj, const std::string &name)
Assert & isTrue(const bool condition, const std::string &name)
Assert & isEqual(const size_t number, const size_t value, const std::string &name)
static bool isValidHexString(const std::string &hex)