Reacted to aspnet/Razor#215 changes.

This commit is contained in:
N. Taylor Mullen 2014-12-05 15:27:35 -08:00
parent 6ec85baa22
commit b666cce854
1 changed files with 17 additions and 15 deletions

View File

@ -2,10 +2,12 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO; using System.IO;
using System.Linq;
using Microsoft.AspNet.FileSystems; using Microsoft.AspNet.FileSystems;
using Microsoft.AspNet.Razor; using Microsoft.AspNet.Razor;
using Microsoft.AspNet.Razor.Generator.Compiler; using Microsoft.AspNet.Razor.Generator.Compiler;
using Microsoft.AspNet.Razor.Parser.SyntaxTree; using Microsoft.AspNet.Razor.Parser.SyntaxTree;
using Microsoft.AspNet.Razor.TagHelpers;
using Moq; using Moq;
using Xunit; using Xunit;
@ -48,8 +50,8 @@ namespace Microsoft.AspNet.Mvc.Razor.Test
{ {
// Arrange // Arrange
var generatorResult = new GeneratorResults( var generatorResult = new GeneratorResults(
new Block( new Block(new BlockBuilder { Type = BlockType.Comment }),
new BlockBuilder { Type = BlockType.Comment }), Enumerable.Empty<TagHelperDescriptor>(),
new RazorError[] { new RazorError("some message", 1, 1, 1, 1) }, new RazorError[] { new RazorError("some message", 1, 1, 1, 1) },
new CodeBuilderResult("", new LineMapping[0]), new CodeBuilderResult("", new LineMapping[0]),
new CodeTree()); new CodeTree());
@ -81,8 +83,8 @@ namespace Microsoft.AspNet.Mvc.Razor.Test
// Arrange // Arrange
var code = "compiled-content"; var code = "compiled-content";
var generatorResult = new GeneratorResults( var generatorResult = new GeneratorResults(
new Block( new Block(new BlockBuilder { Type = BlockType.Comment }),
new BlockBuilder { Type = BlockType.Comment }), Enumerable.Empty<TagHelperDescriptor>(),
new RazorError[0], new RazorError[0],
new CodeBuilderResult(code, new LineMapping[0]), new CodeBuilderResult(code, new LineMapping[0]),
new CodeTree()); new CodeTree());
@ -113,8 +115,8 @@ namespace Microsoft.AspNet.Mvc.Razor.Test
private static GeneratorResults GetGeneratorResult() private static GeneratorResults GetGeneratorResult()
{ {
return new GeneratorResults( return new GeneratorResults(
new Block( new Block(new BlockBuilder { Type = BlockType.Comment }),
new BlockBuilder { Type = BlockType.Comment }), Enumerable.Empty<TagHelperDescriptor>(),
new RazorError[0], new RazorError[0],
new CodeBuilderResult("", new LineMapping[0]), new CodeBuilderResult("", new LineMapping[0]),
new CodeTree()); new CodeTree());