Example #1
0
        public void network_problem_if_not_authorization_in_request_data()
        {
            var manager = new MT4Manager(options);

            manager.Connect(connect.server);

            Assert.Throws <MT4NetworkProblemExeption>(() => manager.CfgRequestCommon(1251));
        }
Example #2
0
        public void auto_reconnect_if_disconnected_in_request_data()
        {
            var manager = new MT4Manager(options);

            manager.Connect(connect.server);
            manager.Login(connect.login, connect.password);
            manager.Disconnect();

            var ex = Record.Exception(() => manager.CfgRequestCommon(1251));

            Assert.Null(ex);
        }
Example #3
0
        public void mt4_no_connection_if_not_connected_in_request_data()
        {
            var manager = new MT4Manager(options);

            Assert.Throws <MT4NoConnectionExeption>(() => manager.CfgRequestCommon(1251));
        }