コード例 #1
0
        public void Upsert_WithNullHostName_ShouldThrowGuardException()
        {
            var hosts = new HostsFile(_mockHandler.Object);

            Assert.Throws <GuardException>(() => hosts.Upsert(IPAddress.None, null));
        }