Beispiel #1
0
 public void ParseBlockWithHelperDirectiveProducesError()
 {
     ParseBlockTest("@helper fooHelper { }",
                    new ExpressionBlock(
                        Factory.CodeTransition(),
                        Factory.Code("helper")
                        .AsImplicitExpression(KeywordSet)
                        .Accepts(AcceptedCharactersInternal.NonWhiteSpace)),
                    RazorDiagnosticFactory.CreateParsing_HelperDirectiveNotAvailable(
                        new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 6)));
 }