adding nunit test to the list of commands
This commit is contained in:
parent
b7075b857b
commit
069a351971
4 changed files with 48 additions and 1 deletions
19
src/dotnet/commands/dotnet-new/CSharp_nunittest/Tests.cs
Normal file
19
src/dotnet/commands/dotnet-new/CSharp_nunittest/Tests.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using NUnit.Framework;
|
||||
|
||||
namespace Tests
|
||||
{
|
||||
public class Tests
|
||||
{
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Test1()
|
||||
{
|
||||
Assert.Pass();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"buildOptions": {
|
||||
"debugType": "portable"
|
||||
},
|
||||
"dependencies": {
|
||||
"System.Runtime.Serialization.Primitives": "4.1.1",
|
||||
"NUnit": "3.4.1",
|
||||
"dotnet-test-nunit": "3.4.0-beta-1"
|
||||
},
|
||||
"testRunner": "nunit",
|
||||
"frameworks": {
|
||||
"netcoreapp1.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"type": "platform",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
"portable-net451+win8"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -96,7 +96,7 @@ namespace Microsoft.DotNet.Tools.New
|
|||
app.Description = "Initializes empty project for .NET Platform";
|
||||
app.HelpOption("-h|--help");
|
||||
|
||||
var csharp = new { Name = "C#", Alias = new[] { "c#", "cs", "csharp" }, TemplatePrefix = "CSharp", Templates = new[] { "Console", "Web", "Lib", "xunittest" } };
|
||||
var csharp = new { Name = "C#", Alias = new[] { "c#", "cs", "csharp" }, TemplatePrefix = "CSharp", Templates = new[] { "Console", "Web", "Lib", "xunittest", "nunittest" } };
|
||||
var fsharp = new { Name = "F#", Alias = new[] { "f#", "fs", "fsharp" }, TemplatePrefix = "FSharp", Templates = new[] { "Console", "Lib" } };
|
||||
|
||||
var languages = new[] { csharp, fsharp };
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"commands/dotnet-new/CSharp_Lib.zip",
|
||||
"commands/dotnet-new/CSharp_xunittest.zip",
|
||||
"commands/dotnet-new/CSharp_Web.zip",
|
||||
"commands/dotnet-new/CSharp_nunittest/**"
|
||||
"commands/dotnet-new/FSharp_Console.zip",
|
||||
"commands/dotnet-new/FSharp_Lib.zip"
|
||||
]
|
||||
|
@ -20,6 +21,7 @@
|
|||
"commands/dotnet-new/CSharp_Lib/**",
|
||||
"commands/dotnet-new/FSharp_Lib/**",
|
||||
"commands/dotnet-new/CSharp_xunittest/**"
|
||||
"commands/dotnet-new/CSharp_nunittest/**"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue