MQLUNIT
|
Single include file for the MQLUNIT library. More...
#include "Assert.mqh"
#include "ComparisonCompactor.mqh"
#include "ConsoleTestRunner.mqh"
#include "Constants.mqh"
#include "TerminalTestRunner.mqh"
#include "Test.mqh"
#include "TestCase.mqh"
#include "TestFailure.mqh"
#include "TestResult.mqh"
#include "TestRunner.mqh"
#include "TestSuite.mqh"
#include "TextFileTestRunner.mqh"
#include "XMLTestRunner.mqh"
Macros | |
#define | MQLUNIT_MQLUNIT_MQH |
#define | ASSERT_FAIL(message) |
Fail the test providing a specific failure description. More... | |
#define | ASSERT_NULL(message, entity) |
Asserts that the entity is NULL. More... | |
#define | ASSERT_NOT_NULL(message, entity) |
Asserts that the entity is not NULL. More... | |
#define | ASSERT_TRUE(message, condition) |
Asserts that the boolean condition is true. More... | |
#define | ASSERT_FALSE(message, condition) |
Asserts that the boolean condition is false. More... | |
#define | ASSERT_EQUALS(message, expected, actual) |
Asserts that the entity actual is equal to the entity expected. More... | |
#define | ASSERT_EQUALS_DELTA(message, expected, actual, delta) |
Asserts that the number actual is equal to the entity expected in respect to delta. More... | |
#define | MQLUNIT_START |
Starts the MQLUNIT test block definition. More... | |
#define | MQLUNIT_INHERIT(super) super::run(__result__, true); |
Enables running inherited tests from the superclass. More... | |
#define | TEST_START(name) |
Defines a beginning of test with a name. More... | |
#define | TEST_END |
Defines an end of a test. More... | |
#define | MQLUNIT_END |
Ends the MQLUNIT test block definition. More... | |
Single include file for the MQLUNIT library.
#define ASSERT_EQUALS | ( | message, | |
expected, | |||
actual | |||
) |
Asserts that the entity actual is equal to the entity expected.
Entities can be values, strings, variables of the primitive types, object references, pointers or arrays of primitive types, object references or pointers.
#define ASSERT_EQUALS_DELTA | ( | message, | |
expected, | |||
actual, | |||
delta | |||
) |
Asserts that the number actual is equal to the entity expected in respect to delta.
#define ASSERT_FAIL | ( | message | ) |
Fail the test providing a specific failure description.
#define ASSERT_FALSE | ( | message, | |
condition | |||
) |
Asserts that the boolean condition is false.
#define ASSERT_NOT_NULL | ( | message, | |
entity | |||
) |
Asserts that the entity is not NULL.
#define ASSERT_NULL | ( | message, | |
entity | |||
) |
Asserts that the entity is NULL.
#define ASSERT_TRUE | ( | message, | |
condition | |||
) |
Asserts that the boolean condition is true.
#define MQLUNIT_END |
Ends the MQLUNIT test block definition.
#define MQLUNIT_INHERIT | ( | super | ) | super::run(__result__, true); |
Enables running inherited tests from the superclass.
#define MQLUNIT_MQLUNIT_MQH |
#define MQLUNIT_START |
Starts the MQLUNIT test block definition.
#define TEST_END |
Defines an end of a test.
#define TEST_START | ( | name | ) |
Defines a beginning of test with a name.
Copyright © 2017 Eneset Group Trust |