/*
NxBRE v.2.0 Unit Test File
*/

/*
These rules will execute, no matter what. Their values will be used in the business logic below They instantiate simple value objects. See in the REFLECTION demo rule set below for more complex object instantiation. Assert is the generic statement, where type should be : - Exception | Boolean | Byte | Short | Integer | Long | Single | Double | Decimal | Date | DateTime | Time | String - or should be a fully qualified class name (with optionaly the assembly name after a coma).
*/

object 5i = new integer(5);
object xmas2003_A = new date(#2003-12-25#);
object manOnMoon_A = new datetime(#1969-07-21T02:56:00#);
object wakeUpCall_A = new time(#07:15:30#);
/*
Assert is derived in specific tags where the type is used as tag name.
*/

boolean TRUE = true;
byte 8b = 8;
date xmas2003 = #2003-12-25#;
datetime manOnMoon = #1969-07-21T02:56:00#;
time wakeUpCall = #07:15:30#;
decimal 3.14m = 3.14;
double 3.14d = 3.14;
integer ZERO = 0;
integer 10i = 10;
short 16s = 16;
single 3.14 = 3.14;
string hello = "world";
/*
The following are short boolean syntax for CONSTANTS.
*/

constant boolean STORED_FALSE = false;
/*
We can not modify the value of such a boolean - Modify will be ignored.
*/

constant boolean STORED_TRUE = true;
STORED_TRUE = new boolean(false);
/*
Basic test that is always executed
*/


if ((STORED_TRUE)
and
(not (STORED_FALSE)))
{}
else
{}

/*
Tests : This to check that globals are correctly processed
*/

evaluate(GlobalCounter);
/*
Tests : Set test Notes : None Result : This will not fire to prove that this set gets skipped..
*/

set BROKENSET { }

/*
Tests : Set test Notes : None Result : Should execute..
*/

set WORKINGSET { }

/*
Tests : This to check that globals are correctly processed
*/

evaluate(GlobalCounter);
/*
Tests : Reflection Test Set Notes : None Result : Should access and alter TestObject
*/

set REFLECTION { }

/*
Tests : This to check that globals are correctly processed
*/

evaluate(GlobalCounter);
/*
Tests : Another Test Set Notes : None
*/

set ANOTHER { }

/*
Tests : This to check that globals are correctly processed
*/

evaluate(GlobalCounter);