public void Process_ContactIsHuman_NoErrorsInArgs()
        {
            // arrange
            var args = new ValidateCommentArgs(new Comment(), new NameValueCollection());
            var sut  = new ContactNotRobot();

            var tracker = CreateTracker(ContactClassification.Unidentified);

            // act
            using (new TrackerSwitcher(tracker))
            {
                sut.Process(args);
            }

            // assert
            Assert.That(args.Errors, Is.Empty);
        }
        public void Process_ContactIsRobot_AddsErrorToArgs()
        {
            // arrange
            var args = new ValidateCommentArgs(new Comment(), new NameValueCollection());
            var sut  = new ContactNotRobot();

            var tracker = CreateTracker(ContactClassification.RobotBoundary);

            // act
            using (new TrackerSwitcher(tracker))
            {
                sut.Process(args);
            }

            // assert
            var errorText = args.Errors.First();

            Assert.That(errorText, Is.EqualTo("An error occurred. Please try again later."));
        }