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