예제 #1
0
파일: BlockTest.cs 프로젝트: edisplay/Razor
        public void ConstructorTransfersInstanceOfChunkGeneratorFromBlockBuilder()
        {
            // Arrange
            var expected = new ExpressionChunkGenerator();
            var builder  = new BlockBuilder()
            {
                Type           = BlockKindInternal.Statement,
                ChunkGenerator = expected
            };

            // Act
            var actual = builder.Build();

            // Assert
            Assert.Same(expected, actual.ChunkGenerator);
        }
 public override void VisitExpressionSpan(ExpressionChunkGenerator chunkGenerator, Span span)
 {
     WriteSpan(span);
 }
 public override void VisitExpressionBlock(ExpressionChunkGenerator chunkGenerator, Block block)
 {
     WriteBlock(block);
 }