PLCnext API Documentation 23.6.0.37
Static Public Member Functions | List of all members
Arp::System::Commons::Testing::Assert Class Reference

Static assertion class for easy use in unit tests. More...

#include <Assert.hpp>

Static Public Member Functions

static void AreEqual (const void *expected, const void *actual)
 
static void AreEqual (const char *expected, const char *actual)
 
static void AreEqual (const char *expected, const String &actual)
 
static void AreEqual (const String &expected, const char *actual)
 
static void AreEqual (char expected, char actual)
 
static void AreEqual (unsigned char expected, unsigned char actual)
 
static void AreEqual (float expected, float actual, float epsilon)
 
static void AreEqual (double expected, double actual, double epsilon)
 
template<typename... Args>
static void AreEqual (float expected, float actual, float epsilon, const char *message, const Args &... args)
 
template<typename... Args>
static void AreEqual (double expected, double actual, double epsilon, const char *message, const Args &... args)
 
template<class T1 , class T2 >
static void AreEqual (const T1 &expected, const T2 &actual)
 
template<class T1 , class T2 , typename... Args>
static void AreEqual (const T1 &expected, const T2 &actual, const char *message, const Args &... args)
 
template<class T1 , class T2 >
static void AreEqual (T1 *expected, T2 *actual)
 
static void AreNotEqual (float notExpected, float actual, float epsilon)
 
static void AreNotEqual (double notExpected, double actual, double epsilon)
 
template<typename... Args>
static void AreNotEqual (float notExpected, float actual, float epsilon, const char *message, const Args &... args)
 
template<typename... Args>
static void AreNotEqual (double notExpected, double actual, double epsilon, const char *message, const Args &... args)
 
template<class T1 , class T2 >
static void AreNotEqual (const T1 &notExpected, const T2 &actual)
 
template<class T1 , class T2 , typename... Args>
static void AreNotEqual (const T1 &notExpected, const T2 &actual, const char *message, const Args &... args)
 
template<typename ... Args>
static void Error (const char *message, const Args &... args)
 
template<typename ... Args>
static void Fail (const char *message, const Args &... args)
 
template<class Predicate >
static void IsTrue (Predicate predicate)
 
template<class Predicate , typename... Args>
static void IsTrue (Predicate predicate, const char *message, const Args &... args)
 
template<class Predicate >
static void IsFalse (Predicate predicate)
 
template<class Predicate , typename... Args>
static void IsFalse (Predicate predicate, const char *message, const Args &... args)
 
template<class T >
static void IsNull (T *pValue)
 
template<class T , typename... Args>
static void IsNull (T *pValue, const char *message, const Args &... args)
 
template<class T >
static void IsNotNull (T *pValue)
 
template<class T , typename... Args>
static void IsNotNull (T *pValue, const char *message, const Args &... args)
 
static void IsEmpty (const String &s)
 
template<typename... Args>
static void IsEmpty (const String &s, const char *message, const Args &... args)
 
static void IsNotEmpty (const String &s)
 
template<typename... Args>
static void IsNotEmpty (const String &s, const char *message, const Args &... args)
 
static void Exists (const String &path)
 
template<typename... Args>
static void Exists (const String &path, const char *message, const Args &... args)
 
static void NotExists (const String &path)
 
template<typename... Args>
static void NotExists (const String &path, const char *message, const Args &... args)
 
template<class TExpected , class T >
static void IsInstanceOfType (const T &instance)
 
template<class TExpected , class T , typename... Args>
static void IsInstanceOfType (const T &instance, const char *message, const Args &... args)
 
template<class TExpected , class T >
static void IsInstanceOfType (const T *pInstance)
 
template<class TExpected , class T , typename... Args>
static void IsInstanceOfType (const T *pInstance, const char *message, const Args &... args)
 
template<class TExpected , class T >
static void IsNotInstanceOfType (const T &instance)
 
template<class TExpected , class T , typename... Args>
static void IsNotInstanceOfType (const T &instance, const char *message, const Args &... args)
 
template<class TExpected , class T >
static void IsNotInstanceOfType (const T *pInstance)
 
template<class TExpected , class T , typename... Args>
static void IsNotInstanceOfType (const T *pInstance, const char *message, const Args &... args)
 
template<typename TException , typename TFunction >
static void Throws (TFunction &&func)
 
template<typename TException , typename TFunction >
static void Throws (const char *message, TFunction &&func)
 

Detailed Description

Static assertion class for easy use in unit tests.


The documentation for this class was generated from the following file: