public DeDeurIntegrationTests() { NetworkHostAddress cfg = $"{IpAddress}:310"; ISamHost host = new SamHost(new TestLogProvider <SamHost>()); host.Connect(cfg); SamReader = new Sam100Reader(host); }
public EvantonIntegrationTests() { NetworkHostAddress cfg = $"{IpAddress}:301"; var host = new SamHost(new TestLogProvider <SamHost>()); host.Connect(cfg); SamReader = new Sam205Reader(host); }
public void ImplicitFromStringConversion_ShouldSuccess() { var ipAddr = "10.34.53.111"; var port = 654; NetworkHostAddress cfg = $"{ipAddr}:{port}"; Assert.Equal(ipAddr, cfg.Host); Assert.Equal(port, cfg.Port); }
public void Is_the_user_address_getting_parsed_correctly() { //Arrange string address = "[email protected]:22222"; string[] splittedAddress = new string[3] { "amit", "192.168.43.146", "22222" }; //Act string[] receivedAddress = NetworkHostAddress.ParseAddress(address); receivedAddress.Should().Equal(splittedAddress); }