Beispiel #1
0
        public static void PerformTests()
        {
            throwexception = null;

            UnitTests.TestCQueue();
            UnitTests.TestLoadFile();
            UnitTests.TestSaveFile();
            UnitTests.InstantiateForexObject();
            UnitTests.ParameterParser();
            UnitTests.VerboseStack();
            UnitTests.TestAccount();
            UnitTests.TestHMA();
            UnitTests.TestWMA();
            UnitTests.TestCCI();
            UnitTests.TestBBands();

            Framework.Logger(99, "Going into an almost infinite loop! (will throw exception in 20 seconds)");
            System.DateTime a = System.DateTime.Now;

            while (true)
            {
                Framework.Logger(0, "loop!");

                System.TimeSpan t = System.DateTime.Now - a;

                if (t.Seconds > 20)
                {
                    throwexception.ToUpper();
                }
            }
        }
Beispiel #2
0
 public override void Init(string pParameters)
 {
     Framework.Logger(0, "Init Called");
     Parameters = pParameters;
     UnitTests.PerformTests();
     //Framework.TickServer.RegisterTickListener("System",this);
 }