コード例 #1
0
        public void EnsureLookupDomainNameIsValid_should_throw_when_lookupDomainName_is_invalid(string lookupDomainName)
        {
            var exception = Record.Exception(() => DnsMonitorReflector.EnsureLookupDomainNameIsValid(lookupDomainName));

            var e = exception.Should().BeOfType <ArgumentException>().Subject;

            e.ParamName.Should().Be("lookupDomainName");
        }
コード例 #2
0
        public void EnsureLookupDomainNameIsValid_should_return_expected_result(string lookupDomainName)
        {
            var result = DnsMonitorReflector.EnsureLookupDomainNameIsValid(lookupDomainName);

            result.Should().Be(lookupDomainName);
        }