Only test winforms/wpf templates on Windows

This commit is contained in:
Daniel Plaisted 2018-11-20 19:43:45 -08:00
parent 7d3fd28fc4
commit 32627d01d2

View file

@ -63,13 +63,24 @@ namespace EndToEnd.Tests
[Theory]
[InlineData("console")]
[InlineData("classlib")]
[InlineData("wpf")]
[InlineData("winforms")]
[InlineData("mstest")]
[InlineData("nunit")]
[InlineData("web")]
[InlineData("mvc")]
public void ItCanBuildTemplates(string templateName)
{
TestTemplateBuild(templateName);
}
[WindowsOnlyTheory]
[InlineData("wpf")]
[InlineData("winforms")]
public void ItCanBuildDesktopTemplates(string templateName)
{
TestTemplateBuild(templateName);
}
private void TestTemplateBuild(string templateName)
{
var directory = TestAssets.CreateTestDirectory(identifier: templateName);
string projectDirectory = directory.FullName;