public void IsUserAgentAllowed_WildCardUserAgent_ReturnsFalse() { string content = @" User-Agent: * Disallow: /"; _unitUnderTest = new RobotsDotText(_rootUri, content); Assert.IsFalse(_unitUnderTest.IsUserAgentAllowed("aaaaaaaaaaaa")); }
public void IsUserAgentAllowed_NullUserAgent_ReturnsTrue() { Assert.IsTrue(_unitUnderTest.IsUserAgentAllowed(null)); }