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"); }
public void EnsureLookupDomainNameIsValid_should_return_expected_result(string lookupDomainName) { var result = DnsMonitorReflector.EnsureLookupDomainNameIsValid(lookupDomainName); result.Should().Be(lookupDomainName); }