public void SetupServerConfigurationAfterStartStop() { using (var server = new ConfigServer()) { server.SetupConfiguration(); server.Start(); server.Stop(); server.SetupConfiguration(); server.Start(); server.Stop(); } }
public void SetupServerConfigurationBeforeStart() { using (var server = new ConfigServer()) { server.SetupConfiguration(); server.Start(); } }
public void StartServerWithoutConfiguration() { using (var server = new ConfigServer()) { Exception ex = Assert.Throws <EtherConfigurationException>(() => server.Start()); Assert.IsType <EtherConfigurationException>(ex); } }
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(); } } }