コード例 #1
0
        public async Task should_handle_null_ping()
        {
            var p      = new PingService();
            var actual = await p.DoLookUp(null, AddressType.DomainName);

            Assert.IsNotNull(actual.ErrorMessage);
            Assert.AreEqual(ServiceStatus.Bad, actual.Status);
        }
コード例 #2
0
        public async Task should_ping_domain()
        {
            var p      = new PingService();
            var actual = await p.DoLookUp("calebukle.com", AddressType.DomainName);

            Assert.IsNotNull(actual.Data);
            Assert.AreEqual(ServiceStatus.Ok, actual.Status);
        }