public void DetermineControlFlow_JustReturnLine__ExceptionIfHasSQLBlockCommentButNoSplitChar() { //Arrange String Input = "A String /*SqlComment*/ asdf"; LineProcessor LineProcessor = new LineProcessor(Input); //Act //Assert Assert.Throws <ExpectedNumberOfElementsNotFoundException>(delegate { LineProcessor.DetermineControlFlow_JustReturnLine(); }); }
public void DetermineControlFlow_JustReturnLine__FalseIfPassesValidation() { //Arrange Boolean Expected = false; String Input = "A String /*Sql|Com|ment*/ asdf"; LineProcessor LineProcessor = new LineProcessor(Input); //Act Boolean Actual = LineProcessor.DetermineControlFlow_JustReturnLine(); //Assert Assert.AreEqual(Expected, Actual); }
public void DetermineControlFlow_JustReturnLine__TrueIfNoSQLBlockComment() { //Arrange Boolean Expected = true; String Input = "A String asdf"; LineProcessor LineProcessor = new LineProcessor(Input); //Act Boolean Actual = LineProcessor.DetermineControlFlow_JustReturnLine(); //Assert Assert.AreEqual(Expected, Actual); }