parent
4eb4cef18c
commit
de8aa5bffa
|
|
@ -3,10 +3,12 @@
|
||||||
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNetCore.Testing.xunit;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
{
|
{
|
||||||
|
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
|
||||||
public class BuildIntegrationTest22NetFx : BuildIntegrationTestLegacy
|
public class BuildIntegrationTest22NetFx : BuildIntegrationTestLegacy
|
||||||
{
|
{
|
||||||
public BuildIntegrationTest22NetFx(LegacyBuildServerTestFixture buildServer)
|
public BuildIntegrationTest22NetFx(LegacyBuildServerTestFixture buildServer)
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNetCore.Testing.xunit;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
|
|
@ -29,8 +30,8 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
return new Disposable();
|
return new Disposable();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[ConditionalFact]
|
||||||
public async Task Building_Project()
|
public virtual async Task Building_Project()
|
||||||
{
|
{
|
||||||
using (CreateTestProject())
|
using (CreateTestProject())
|
||||||
{
|
{
|
||||||
|
|
@ -54,7 +55,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[ConditionalFact]
|
||||||
public virtual async Task BuildingProject_CopyToOutputDirectoryFiles()
|
public virtual async Task BuildingProject_CopyToOutputDirectoryFiles()
|
||||||
{
|
{
|
||||||
using (CreateTestProject())
|
using (CreateTestProject())
|
||||||
|
|
@ -71,8 +72,8 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[ConditionalFact]
|
||||||
public async Task Publish_Project()
|
public virtual async Task Publish_Project()
|
||||||
{
|
{
|
||||||
using (CreateTestProject())
|
using (CreateTestProject())
|
||||||
{
|
{
|
||||||
|
|
@ -91,8 +92,8 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[ConditionalFact]
|
||||||
public async Task Publish_NoopsWithMvcRazorCompileOnPublish_False()
|
public virtual async Task Publish_NoopsWithMvcRazorCompileOnPublish_False()
|
||||||
{
|
{
|
||||||
using (CreateTestProject())
|
using (CreateTestProject())
|
||||||
{
|
{
|
||||||
|
|
@ -108,8 +109,8 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact] // This will use the old precompilation tool, RazorSDK shouldn't get involved.
|
[ConditionalFact] // This will use the old precompilation tool, RazorSDK shouldn't get involved.
|
||||||
public async Task Build_WithMvcRazorCompileOnPublish_Noops()
|
public virtual async Task Build_WithMvcRazorCompileOnPublish_Noops()
|
||||||
{
|
{
|
||||||
using (CreateTestProject())
|
using (CreateTestProject())
|
||||||
{
|
{
|
||||||
|
|
@ -124,8 +125,8 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[ConditionalFact]
|
||||||
public async Task Build_DoesNotAddRelatedAssemblyPart_IfToolSetIsNotRazorSdk()
|
public virtual async Task Build_DoesNotAddRelatedAssemblyPart_IfToolSetIsNotRazorSdk()
|
||||||
{
|
{
|
||||||
using (CreateTestProject())
|
using (CreateTestProject())
|
||||||
{
|
{
|
||||||
|
|
@ -139,8 +140,8 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[ConditionalFact]
|
||||||
public async Task Build_DoesNotPrintsWarnings_IfProjectFileContainsRazorFiles()
|
public virtual async Task Build_DoesNotPrintsWarnings_IfProjectFileContainsRazorFiles()
|
||||||
{
|
{
|
||||||
using (CreateTestProject())
|
using (CreateTestProject())
|
||||||
{
|
{
|
||||||
|
|
@ -152,8 +153,8 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[ConditionalFact]
|
||||||
public async Task Publish_IncludesRefAssemblies_WhenCopyRefAssembliesToPublishDirectoryIsSet()
|
public virtual async Task Publish_IncludesRefAssemblies_WhenCopyRefAssembliesToPublishDirectoryIsSet()
|
||||||
{
|
{
|
||||||
using (CreateTestProject())
|
using (CreateTestProject())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue