Пример #1
0
        public void SetupServerConfigurationAfterStartStop()
        {
            using (var server = new ConfigServer())
            {
                server.SetupConfiguration();
                server.Start();
                server.Stop();

                server.SetupConfiguration();
                server.Start();
                server.Stop();
            }
        }
Пример #2
0
 public void SetupServerConfigurationBeforeStart()
 {
     using (var server = new ConfigServer())
     {
         server.SetupConfiguration();
         server.Start();
     }
 }
Пример #3
0
        public void StartServerWithoutConfiguration()
        {
            using (var server = new ConfigServer())
            {
                Exception ex = Assert.Throws <EtherConfigurationException>(() => server.Start());

                Assert.IsType <EtherConfigurationException>(ex);
            }
        }
Пример #4
0
        public void SetupServerConfigurationAfterStart()
        {
            using (var server = new ConfigServer())
            {
                server.SetupConfiguration();
                server.Start();

                Exception ex = Assert.Throws <EtherConfigurationException>(() => server.SetupConfiguration());

                Assert.IsType <EtherConfigurationException>(ex);
            }
        }
        public void StartClientWithConfiguration()
        {
            using (var server = new ConfigServer())
            {
                server.SetupConfiguration();
                server.Start();

                using (var client = new ConfigClient())
                {
                    client.SetupConfiguration();
                    client.Connect();
                    client.Disconnect();
                }
            }
        }
        public void StartClientWihtoutConfiguration()
        {
            using (var server = new ConfigServer())
            {
                server.SetupConfiguration();
                server.Start();

                using (var client = new ConfigClient())
                {
                    Exception ex = Assert.Throws <EtherConfigurationException>(() => client.Connect());
                    Assert.IsType <EtherConfigurationException>(ex);

                    client.Disconnect();
                }
            }
        }