示例#1
0
        public void testCanPopulateParametersFromSystemIdWithStoId()
        {
            var gui = new FakeResearchGUI();

            gui.setSystemId("178114");
            gui.loadSystem();
            gui.doAllWork();
            var details = SystemDetailsTable.DETAILS.details(178114);
            var markets = O.list <string>(MsivBacktestTable.BACKTEST.markets(details.siv(), details.stoId()));

            AreEqual(O.sort(markets), O.sort(gui.markets()));
            var parameters = gui.parameters();

            AreEqual(178114, parameters.get <int>("systemId"));
            AreEqual("0", parameters.get <string>("LeadBars"));
            AreEqual("0", parameters.get <string>("NumDevsDn"));
            IsTrue(gui.runNumberEnabled());
            IsTrue(gui.runInNativeCurrency());
            gui.setRunNumber("4");
            gui.loadSystem();
            gui.doAllWork();
            parameters = gui.parameters();
            AreEqual(178114, parameters.get <int>("systemId"));
            AreEqual("0", parameters.get <string>("LeadBars"));
            AreEqual("4", parameters.get <string>("LengthDn"));
        }