Пример #1
0
        public void WhenPingingNotExistingMachine_ResultMustBeFalse()
        {
            bool result = PingCheck.SynchrounouslyCheck("1.2.3.4");

            result.Should().BeFalse();
        }
Пример #2
0
        public void WhenPingingInvalidAddress_ResultMustBeFalse()
        {
            bool result = PingCheck.SynchrounouslyCheck("1.1.1.1.1");

            result.Should().BeFalse();
        }
Пример #3
0
        public void WhenPinginLocalMachine_ResultMustBeTrue()
        {
            bool result = PingCheck.SynchrounouslyCheck("localhost");

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