public void ShouldReturnTrueAndContinueProcessingDirectiveIfAfterCodeAndBehaviourAfterCodeIsAllow()
 {
     var directiveLineProcessor = new TestableDirectiveLineProcessor(BehaviorAfterCode.Allow);
     var returnValue = directiveLineProcessor.ProcessLine(null, null, "#Test x", false);
     returnValue.ShouldBeTrue();
     directiveLineProcessor.InheritedProcessLineCalled.ShouldBeTrue();
 }
 public void ShouldReturnTrueButNotContinueProcessingDirectiveIfAfterCodeByDefault()
 {
     var directiveLineProcessor = new TestableDirectiveLineProcessor();
     var returnValue = directiveLineProcessor.ProcessLine(null, null, "#Test x", false);
     returnValue.ShouldBeTrue();
     directiveLineProcessor.InheritedProcessLineCalled.ShouldBeFalse();
 }
            public void ShouldParseTheArgumentFromTheDirectiveLine()
            {
                var directiveLineProcessor = new TestableDirectiveLineProcessor(BehaviorAfterCode.Allow);

                directiveLineProcessor.ProcessLine(null, null, "#Test argument", false);
                directiveLineProcessor.ArgumentParsedCorrectly.ShouldBeTrue();
            }
            public void ShouldReturnTrueAndContinueProcessingDirectiveIfAfterCodeAndBehaviourAfterCodeIsAllow()
            {
                var directiveLineProcessor = new TestableDirectiveLineProcessor(BehaviorAfterCode.Allow);
                var returnValue            = directiveLineProcessor.ProcessLine(null, null, "#Test x", false);

                returnValue.ShouldBeTrue();
                directiveLineProcessor.InheritedProcessLineCalled.ShouldBeTrue();
            }
            public void ShouldReturnTrueButNotContinueProcessingDirectiveIfAfterCodeByDefault()
            {
                var directiveLineProcessor = new TestableDirectiveLineProcessor();
                var returnValue            = directiveLineProcessor.ProcessLine(null, null, "#Test x", false);

                returnValue.ShouldBeTrue();
                directiveLineProcessor.InheritedProcessLineCalled.ShouldBeFalse();
            }
 public void ShouldParseTheArgumentFromTheDirectiveLine()
 {
     var directiveLineProcessor = new TestableDirectiveLineProcessor(BehaviorAfterCode.Allow);
     directiveLineProcessor.ProcessLine(null, null, "#Test argument", false);
     directiveLineProcessor.ArgumentParsedCorrectly.ShouldBeTrue();
 }
 public void ShouldReturnFalseWhenLineDoesNotMatchDirectiveStringWithoutAnArgument()
 {
     var directiveLineProcessor = new TestableDirectiveLineProcessor();
     directiveLineProcessor.Matches("#NotATest").ShouldBeFalse();
 }
 public void ShouldReturnTrueWhenLineMatchesDirectiveStringWithoutAnArgument()
 {
     var directiveLineProcessor = new TestableDirectiveLineProcessor();
     directiveLineProcessor.Matches("#Test").ShouldBeTrue();
 }
            public void ShouldReturnFalseWhenLineDoesNotMatchDirectiveStringWithoutAnArgument()
            {
                var directiveLineProcessor = new TestableDirectiveLineProcessor();

                directiveLineProcessor.Matches("#NotATest").ShouldBeFalse();
            }
            public void ShouldReturnTrueWhenLineMatchesDirectiveStringWithoutAnArgument()
            {
                var directiveLineProcessor = new TestableDirectiveLineProcessor();

                directiveLineProcessor.Matches("#Test").ShouldBeTrue();
            }