Exemplo n.º 1
0
        public void IsUserAgentAllowed_WildCardUserAgent_ReturnsFalse()
        {
            string content = @"
User-Agent: *
Disallow: /";

            _unitUnderTest = new RobotsDotText(_rootUri, content);

            Assert.IsFalse(_unitUnderTest.IsUserAgentAllowed("aaaaaaaaaaaa"));
        }
Exemplo n.º 2
0
 public void IsUserAgentAllowed_NullUserAgent_ReturnsTrue()
 {
     Assert.IsTrue(_unitUnderTest.IsUserAgentAllowed(null));
 }