public void ShouldNotHandleWhenTextIsNull()
        {
            // arrange
            string textToTest = null;
            var    rule       = new MaterialAssignmentParsingRule();

            // act
            var result = rule.Handles(textToTest);

            // assert
            result.ShouldBe(false);
        }
        public void ShouldNotHandleWhenTextHasIsWithSpaceAfter()
        {
            // arrange
            var textToTest = "hasis withspaceafter";
            var rule       = new MaterialAssignmentParsingRule();

            // act
            var result = rule.Handles(textToTest);

            // assert
            result.ShouldBe(false);
        }
        public void ShouldNotHandleWhenTextStartsWithHow()
        {
            // arrange
            var textToTest = "hownowbrowncow";
            var rule       = new MaterialAssignmentParsingRule();

            // act
            var result = rule.Handles(textToTest);

            // assert
            result.ShouldBe(false);
        }
        public void ShouldNotHandleWhenTextEndsWithQuestionMark()
        {
            // arrange
            var textToTest = "endswithquestionmark?";
            var rule       = new MaterialAssignmentParsingRule();

            // act
            var result = rule.Handles(textToTest);

            // assert
            result.ShouldBe(false);
        }
        public void ShouldNotHandleWhenTextIsWhitespace()
        {
            // arrange
            var textToTest = " ";
            var rule       = new MaterialAssignmentParsingRule();

            // act
            var result = rule.Handles(textToTest);

            // assert
            result.ShouldBe(false);
        }
        public void ShouldHandleWhenTextHasIsWithSpacesBeforeAndAfterAndCreditsWithSpaceBefore()
        {
            // arrange
            var textToTest = "has is and credits";
            var rule       = new MaterialAssignmentParsingRule();

            // act
            var result = rule.Handles(textToTest);

            // assert
            result.ShouldBe(true);
        }
        public void ShouldNotHandleWhenTextHasCreditsWithoutSpaces()
        {
            // arrange
            var textToTest = "hascreditswithoutspaces";
            var rule       = new MaterialAssignmentParsingRule();

            // act
            var result = rule.Handles(textToTest);

            // assert
            result.ShouldBe(false);
        }