public void PingTest() { Assert.IsTrue(PingCheck.IsRabbitPingable(hostName)); }
public void WhenPingingNotExistingMachine_ResultMustBeFalse() { bool result = PingCheck.SynchrounouslyCheck("1.2.3.4"); result.Should().BeFalse(); }
public void WhenPingingInvalidAddress_ResultMustBeFalse() { bool result = PingCheck.SynchrounouslyCheck("1.1.1.1.1"); result.Should().BeFalse(); }
public void WhenPinginLocalMachine_ResultMustBeTrue() { bool result = PingCheck.SynchrounouslyCheck("localhost"); result.Should().BeTrue("Ping to local machine must be successful."); }