2015-05-04 22:25:41 +04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Failure.h"
|
|
|
|
|
|
|
|
class Assertions {
|
|
|
|
public:
|
|
|
|
static void StringEquals(std::string message, std::string expected, std::string actual, const char* fileName, long lineNumber);
|
|
|
|
|
|
|
|
static void StringEquals(std::string message, const char* expected, const char* actual, const char* fileName, long lineNumber);
|
2015-09-28 19:43:31 +06:00
|
|
|
|
|
|
|
static void ConditionFailed(std::string message, std::string condition, const char* fileName, long lineNumber, bool onlyWarning = false);
|
2015-05-04 22:25:41 +04:00
|
|
|
|
|
|
|
static void LongEquals(std::string message, long expected, long actual, const char* fileName, long lineNumber);
|
|
|
|
|
|
|
|
static void UInt32Equals(std::string message, unsigned int expected, unsigned int actual, const char* fileName, long lineNumber);
|
|
|
|
|
|
|
|
static void CharEquals(std::string message, char expected, char actual, const char* fileName, long lineNumber);
|
2015-05-15 23:20:04 +04:00
|
|
|
|
|
|
|
static void DoubleEquals(std::string message, double expected, double actual, double epsilon, const char* fileName, long lineNumber);
|
2015-06-13 22:10:36 +04:00
|
|
|
|
|
|
|
static void MemoryEquals(std::string message, void* expected, void* actual, int size, const char* fileName, long lineNumber);
|
2015-05-04 22:25:41 +04:00
|
|
|
};
|