public void GetIdAtLocationTestConfigNotInitialized()
        {
            Configuration config = new Configuration();

            string result = config.GetIdAtLocation(1);

            Assert.AreEqual(String.Empty, result);
        }
        public void GetIdAtLocationTestSimpleScenario()
        {
            Configuration config = new Configuration();

            config.Id = new string[2];
            config.Id[0] = "zero";
            config.Id[1] = "one";

            string result = config.GetIdAtLocation(1);

            Assert.AreEqual("one", result);
        }
        public ExecutorContainerWrapper()
        {
            _container = new ExecutorContainer();
            _container.ReadConfig(false);
            Config = _container.Config;

            //_container.NonDedicatedExecutingStatusChanged += new NonDedicatedExecutingStatusChangedEventHandler(this.RefreshUIControls);
            _container.GotDisconnected += new GotDisconnectedEventHandler(this.Executor_GotDisconnected);
            _container.ExecConnectEvent += new ExecutorConnectStatusEventHandler(this.ExecutorConnect_Status);

            //now application should refresh ui with config values
        }
        public void SetIdAtLocationTestIncreasingTheArray()
        {
            Configuration config = new Configuration();

            config.Id = new string[2];
            config.Id[0] = "zero";
            config.Id[1] = "one";

            config.SetIdAtLocation(2, "test");

            Assert.AreEqual("test", config.Id[2]);
        }
        public void GetIdCountTestNoSeveralIds()
        {
            Configuration config = new Configuration();

            config.Id = new string[2];
            config.Id[0] = "zero";
            config.Id[1] = "one";

            Assert.AreEqual(2, config.GetIdCount());
        }
        public void GetIdCountTestNoIds()
        {
            Configuration config = new Configuration();

            Assert.AreEqual(0, config.GetIdCount());
        }
        public void SetIdAtLocationTestSimpleScenario()
        {
            Configuration config = new Configuration();

            config.Id = new string[2];
            config.Id[0] = "zero";
            config.Id[1] = "one";

            config.SetIdAtLocation(1, "test");

            Assert.AreEqual("test", config.Id[1]);
        }
        public void SetIdAtLocationTestInitializingTheIdArray()
        {
            Configuration config = new Configuration();

            config.SetIdAtLocation(2, "test");

            Assert.AreEqual("test", config.Id[2]);
        }