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

            _unitUnderTest = new RobotsDotText(_rootUri, content);

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