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#);
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";
constant boolean STORED_FALSE = false;
constant boolean STORED_TRUE = true;
STORED_TRUE = new boolean(false);
if ((STORED_TRUE)
and (not (STORED_FALSE)))
{constant boolean RT1 = true;
}
else
{throw new BREFatalException("RT1");
}
evaluate(GlobalCounter);
set BROKENSET {log(5, "BROKENSET unexpectidly running");
constant boolean BROKENSET = true;
}
set WORKINGSET {log(5, "WORKINGSET running");
constant boolean WORKINGSET = true;
log(3, hello);
throw new BREException();
BREException EXCP = new BREException("This is another exception!");
throw EXCP;
throw new BREException(hello);
while ((INC_X++) < 10i)
{
while ((INC_Y++) < 5i)
{}
INC_Y = ZERO;
}
while ((INC_X++) < 10i)
{throw new BREFatalException("WLT2");
}
INC_X = 6;
while ((INC_X++) < 10i)
{}
evaluate(GetEnumerable);
foreach(ForEachParser in GetEnumerable)
{}
if ((constant boolean T1 = true) == (object V1 = STORED_TRUE))
{constant boolean RT2 = true;
}
else
{throw new BREFatalException("RT2");
}
if (((evaluate(50i)) == (evaluate(mulBy5i(myParam = "10"))))
and ((evaluate(50i)) == (evaluate(mulBy5i(myParam = 10i)))))
{constant boolean RT3 = true;
}
else
{throw new BREFatalException("RT3");
}
if ((boolean VALUE1 = true))
{constant boolean LT1 = true;
}
else
{throw new BREFatalException("LT1");
}
if (not ((VALUE1 = new boolean(false))))
{constant boolean LT2 = true;
}
else
{throw new BREFatalException("LT2");
}
if (STORED_TRUE == VALUE1)
{throw new BREFatalException("LT3");
}
else
{constant boolean LT3 = true;
}
if ((TRUE != VALUE1)
and (TRUE == VALUE1))
{throw new BREFatalException("LT4");
}
else
{constant boolean LT4 = true;
}
if ((TRUE != VALUE1)
or (TRUE == VALUE1))
{constant boolean LT5 = true;
}
else
{throw new BREFatalException("LT5");
}
if ((TRUE != VALUE1)
and ((constant boolean FALSE1 = false) == VALUE1))
{constant boolean LT6 = true;
}
else
{throw new BREFatalException("LT6");
}
if ((5i == (integer VALUE2 = 5))
and (10i >= VALUE2))
{constant boolean LT7 = true;
}
else
{throw new BREFatalException("LT7");
}
if (ZERO == VALUE2)
{throw new BREFatalException("LT8");
}
else
{constant boolean LT8 = true;
}
if (EXCP instance of (exception VALUE3 = new exception("Test exception from XML")))
{constant boolean LT9 = true;
}
else
{throw new BREFatalException("LT9");
}
if (not (STORED_FALSE == STORED_TRUE)
and (STORED_TRUE == STORED_FALSE)
and (STORED_FALSE == STORED_FALSE))
{constant boolean LT10 = true;
}
else
{throw new BREFatalException("LT10");
}
if (STORED_TRUE == STORED_FALSE)
{throw new BREFatalException("LT11");
}
elseif (STORED_FALSE == STORED_FALSE)
{constant boolean LT11 = true;
}
else
{throw new BREFatalException("LT11");
}
if ((ZERO between [ZERO and 10i] )
and (5i between ]ZERO and 10i[ )
and (10i between [ZERO and 10i] ))
{constant boolean LT12 = true;
}
else
{throw new BREFatalException("LT12");
}
if ((ZERO between ]ZERO and 10i] )
or (10i between [ZERO and 10i[ ))
{throw new BREFatalException("LT13");
}
else
{constant boolean LT13 = true;
}
if ((5i in (5i, 10i)
and (5i in (ZERO, 10i, (integer NewValue = 5))
and not ((integer 0K = -273) in (ZERO, 5i, 10i))
{constant boolean LT14 = true;
}
else
{throw new BREFatalException("LT14");
}
string testAssert = "probe";
if ((testAssert != null)
and not (turnip != null))
{constant boolean LT15 = true;
}
else
{throw new BREFatalException("LT15");
}
testAssert = null;
if not (testAssert != null)
{constant boolean LT16 = true;
}
else
{throw new BREFatalException("LT16");
}
invoke set(REFLECTION);
invoke set(TestObject2);
throw new BREFatalException("This is a fatal exception!");
constant boolean FATEX = true;
log(5, "WORKINGSET finished");
}
evaluate(GlobalCounter);
set REFLECTION {log(5, "REFLECTION running");
constant boolean REFLECTION = true;
object TestObject_Null = TestObject.GetNull;
if ((object Null_Check = org.nxbre.util.Reflection.IsNull(TestObject_Null)) == TRUE)
{constant boolean LT17 = true;
}
else
{throw new BREFatalException("LT17");
}
object Hashtable_Value = TestHashtable.Item("two");
TestHashtable.Item("four",
"forth");
object TestRowSet_Col1 = org.nxbre.util.DataAccess.GetDataRowColumnValue(TestRowSet,
"col1");
org.nxbre.util.DataAccess.SetDataRowColumnValue(TestRowSet,
"col2",
1969);
object TestMultiply = org.nxbre.util.Maths.Multiply(2,
5,
9);
object TestOperate1 = org.nxbre.test.TestObject.Operate1(0.5,
4,
7);
object Temp_TestOperate2 = org.nxbre.util.Parameter.ToArray(4,
7);
object TestOperate2 = org.nxbre.test.TestObject.Operate2(-3,
Temp_TestOperate2);
if ((object TestObject_MyField = TestObject.MyField) == TRUE)
{
object TestObject_MyProperty = TestObject.MyProperty;
object TestObject_NewProperty = org.nxbre.test.TestObject.Add(10i,
TestObject_MyProperty);
TestObject.MyProperty(TestObject_NewProperty);
TestObject.MyField(STORED_FALSE);
object TestObject2 = new org.nxbre.test.TestObject(STORED_TRUE,
99,
"world");
TestObject.InheritMethod(TestObject2);
}
else
{throw new BREFatalException("REFLECTION");
}
log(5, "REFLECTION finished");
}
evaluate(GlobalCounter);
set ANOTHER {log(5, "ANOTHER running");
constant boolean ANOTHER = true;
log(5, "ANOTHER finished");
}
evaluate(GlobalCounter);