Exemplo n.º 1
0
        public void ListenerConstructedWithSpanCallbackDoesNotThrowOnStartBlockEndBlockOrError()
        {
            // Arrange
            Action <Span>   spanCallback = _ => { };
            CallbackVisitor listener     = new CallbackVisitor(spanCallback);

            // Act/Assert
            listener.VisitStartBlock(BlockType.Functions);
            listener.VisitError(new RazorError("Error", SourceLocation.Zero));
            listener.VisitEndBlock(BlockType.Functions);
        }