29 lines
737 B
C#
29 lines
737 B
C#
using Xunit;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace Templates.Test
|
|
{
|
|
public class EmptyWebTemplateTest : TemplateTestBase
|
|
{
|
|
public EmptyWebTemplateTest(ITestOutputHelper output) : base(output)
|
|
{
|
|
}
|
|
|
|
[Theory]
|
|
[InlineData(null)]
|
|
[InlineData("net461")]
|
|
public void EmptyWebTemplate_Works(string targetFrameworkOverride)
|
|
{
|
|
RunDotNetNew("web", targetFrameworkOverride);
|
|
|
|
foreach (var publish in new[] { false, true })
|
|
{
|
|
using (var aspNetProcess = StartAspNetProcess(targetFrameworkOverride, publish))
|
|
{
|
|
aspNetProcess.AssertOk("/");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|