예제 #1
0
 public void PingTest()
 {
     Assert.IsTrue(PingCheck.IsRabbitPingable(hostName));
 }
예제 #2
0
        public void WhenPingingNotExistingMachine_ResultMustBeFalse()
        {
            bool result = PingCheck.SynchrounouslyCheck("1.2.3.4");

            result.Should().BeFalse();
        }
예제 #3
0
        public void WhenPingingInvalidAddress_ResultMustBeFalse()
        {
            bool result = PingCheck.SynchrounouslyCheck("1.1.1.1.1");

            result.Should().BeFalse();
        }
예제 #4
0
        public void WhenPinginLocalMachine_ResultMustBeTrue()
        {
            bool result = PingCheck.SynchrounouslyCheck("localhost");

            result.Should().BeTrue("Ping to local machine must be successful.");
        }