Rename a test
Imports is something different, this is a test for usings.
This commit is contained in:
parent
be10bb5f7b
commit
a84f35022e
|
|
@ -240,7 +240,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void Imports_Runtime()
|
public void Usings_Runtime()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
var engine = RazorEngine.Create(builder => builder.Features.Add(new ApiSetsIRTestAdapter()));
|
var engine = RazorEngine.Create(builder => builder.Features.Add(new ApiSetsIRTestAdapter()));
|
||||||
|
|
@ -922,7 +922,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void Imports_DesignTime()
|
public void Usings_DesignTime()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
var engine = RazorEngine.CreateDesignTime(builder => builder.Features.Add(new ApiSetsIRTestAdapter()));
|
var engine = RazorEngine.CreateDesignTime(builder => builder.Features.Add(new ApiSetsIRTestAdapter()));
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||||
using static System;
|
using static System;
|
||||||
using static System.Console;
|
using static System.Console;
|
||||||
using static global::System.Text.Encoding;
|
using static global::System.Text.Encoding;
|
||||||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Imports_DesignTime
|
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Usings_DesignTime
|
||||||
{
|
{
|
||||||
#pragma warning disable 219
|
#pragma warning disable 219
|
||||||
private void __RazorDirectiveTokenHelpers__() {
|
private void __RazorDirectiveTokenHelpers__() {
|
||||||
|
|
@ -18,12 +18,12 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||||
#pragma warning disable 1998
|
#pragma warning disable 1998
|
||||||
public async System.Threading.Tasks.Task ExecuteAsync()
|
public async System.Threading.Tasks.Task ExecuteAsync()
|
||||||
{
|
{
|
||||||
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Imports.cshtml"
|
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
|
||||||
__o = typeof(Path).FullName;
|
__o = typeof(Path).FullName;
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Imports.cshtml"
|
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
|
||||||
__o = typeof(Foo).FullName;
|
__o = typeof(Foo).FullName;
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
Source Location: (197:8,29 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Imports.cshtml)
|
Source Location: (197:8,29 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml)
|
||||||
|typeof(Path).FullName|
|
|typeof(Path).FullName|
|
||||||
Generated Location: (841:21,32 [21] )
|
Generated Location: (839:21,32 [21] )
|
||||||
|typeof(Path).FullName|
|
|typeof(Path).FullName|
|
||||||
|
|
||||||
Source Location: (259:9,35 [20] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Imports.cshtml)
|
Source Location: (259:9,35 [20] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml)
|
||||||
|typeof(Foo).FullName|
|
|typeof(Foo).FullName|
|
||||||
Generated Location: (1018:26,38 [20] )
|
Generated Location: (1015:26,38 [20] )
|
||||||
|typeof(Foo).FullName|
|
|typeof(Foo).FullName|
|
||||||
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Imports.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "f452adb7c255f6d9d6d2573c6add7cb28022b151"
|
#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "f452adb7c255f6d9d6d2573c6add7cb28022b151"
|
||||||
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||||
{
|
{
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
@ -9,20 +9,20 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||||
using static System;
|
using static System;
|
||||||
using static System.Console;
|
using static System.Console;
|
||||||
using static global::System.Text.Encoding;
|
using static global::System.Text.Encoding;
|
||||||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Imports_Runtime
|
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Usings_Runtime
|
||||||
{
|
{
|
||||||
#pragma warning disable 1998
|
#pragma warning disable 1998
|
||||||
public async System.Threading.Tasks.Task ExecuteAsync()
|
public async System.Threading.Tasks.Task ExecuteAsync()
|
||||||
{
|
{
|
||||||
WriteLiteral("\r\n");
|
WriteLiteral("\r\n");
|
||||||
WriteLiteral("\r\n<p>Path\'s full type name is ");
|
WriteLiteral("\r\n<p>Path\'s full type name is ");
|
||||||
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Imports.cshtml"
|
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
|
||||||
Write(typeof(Path).FullName);
|
Write(typeof(Path).FullName);
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
WriteLiteral("</p>\r\n<p>Foo\'s actual full type name is ");
|
WriteLiteral("</p>\r\n<p>Foo\'s actual full type name is ");
|
||||||
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Imports.cshtml"
|
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
|
||||||
Write(typeof(Foo).FullName);
|
Write(typeof(Foo).FullName);
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
Loading…
Reference in New Issue