public void BreakpointOnDoStatementIsValid() { var ast = GenerateAst(testScript); var actual = BreakpointValidationHelper.GetBreakpointPosition(ast, 17); Assert.IsTrue(actual.IsValid); }
public void BreakpointOnEmptyLineIsInvalid() { var ast = GenerateAst(testScript); var actual = BreakpointValidationHelper.GetBreakpointPosition(ast, 4); Assert.IsFalse(actual.IsValid); }
public void BreakpointOnCommentBlockEndTagIsInvalid() { var ast = GenerateAst(testScript); var actual = BreakpointValidationHelper.GetBreakpointPosition(ast, 7); Assert.IsFalse(actual.IsValid); }
public void BreakpointOnNamedBlockIsValid() { var ast = GenerateAst(testScript); var actual = BreakpointValidationHelper.GetBreakpointPosition(ast, 33); Assert.IsTrue(actual.IsValid); }