public void Ping_ServerDoesNotExist_ReturnsFalse()
        {
            // arrange
            var helper = new UrlPing(new FakeLog());

            // act
            var result = helper.Ping(new NetworkConnection(NonExistantUrl));

            // assert
            Assert.That(result.Item1, Is.False);
            Assert.That(result.Item2, Is.EqualTo("The remote name could not be resolved: 'www.bluttanblä.com'"));
        }
        public void Ping_ServerRespondedWithOk_ReturnsTrue()
        {
            using (var server = new TestWebServer())
            {
                // arrange
                var helper = new UrlPing(new FakeLog());

                // act
                var result = helper.Ping(new NetworkConnection(TestWebServer.Url));

                // assert
                Assert.That(result.Item1, Is.True);
            }
        }