Skip to content

Commit acce94c

Browse files
author
Jason Zhai
committed
Using NUnit3.DotNetNew.Template tests
1 parent 28cf0cc commit acce94c

3 files changed

+19
-45
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,15 @@
1-
Microsoft.Azure.WebJobs.ItemTemplates
2-
Package version: 4.0.3062
3-
Details: Collection of templates for Azure Functions
1+
NUnit3.DotNetNew.Template
2+
Package version: 1.9.0
3+
Details: Project and item templates containing basic NUnit 3 Test Project.
44
Source Feed: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json
55
Authors:
6-
Microsoft
6+
akharlov
77
License Metadata:
8-
License Url: https://go.microsoft.com/fwlink/?linkid=2028464
9-
Repository Url: https://go.microsoft.com/fwlink/?linkid=848145
8+
License Url: https://github.com/nunit/dotnet-new-nunit/blob/master/LICENSE
9+
Repository Url: https://github.com/nunit/dotnet-new-nunit
1010
Templates:
11-
Template Name Short Name Type Tags Language
12-
----------------------------------- ---------------------------- ---- ----------------------------------------------------- --------
13-
HttpTrigger http item Azure Function/Trigger/Http C#,F#
14-
QueueTrigger queue item Azure Function/Trigger/Storage Queue C#
15-
HttpTriggerWithOpenAPI httpOpenAPI item Azure Function/Trigger/Http C#
16-
BlobTrigger blob item Azure Function/Trigger/Blob C#,F#
17-
TimerTrigger timer item Azure Function/Trigger/Timer C#,F#
18-
DurableFunctionsOrchestration durable item Azure Function/Durable Functions Orchestration C#
19-
DurableFunctionsEntityOrchestration durableentity item Azure Function/Durable Functions Entity Orchestration C#
20-
SendGrid sendgrid item Azure Function/Ouput/SendGrid C#
21-
EventHubTrigger eventhub item Azure Function/Trigger/EventHub C#,F#
22-
ServiceBusQueueTrigger squeue item Azure Function/Trigger/Service Bus/Queue C#
23-
ServiceBusTopicTrigger stopic item Azure Function/Trigger/Service Bus/Topic C#
24-
EventGridCloudEventTrigger eventgridcloudevent item Azure Function/Trigger/EventGrid/EventGrid CloudEvent C#,F#
25-
EventGridTrigger eventgrid item Azure Function/Trigger/EventGrid C#,F#
26-
IotHubTrigger iothub item Azure Function/Trigger/IotHub C#
27-
CosmosDBTrigger cosmos,CosmosDB item Azure Function/Trigger/Cosmos DB C#,F#
28-
SignalRTrigger signalr item Azure Function/Trigger/Http/SignalR C#
29-
RabbitMQTrigger rqueue item Azure Function/Trigger/RabbitMQ Queue C#
30-
KafkaTrigger kafka item Azure Function/Trigger/Kafka C#
31-
KafkaOutput kafkao item Azure Function/Ouput/Kafka C#
32-
SqlInputBinding sqlinput item Azure Function/Input/SQL C#
33-
SqlOutputBinding sqloutput item Azure Function/Output/SQL C#
34-
SqlTriggerBinding sqltrigger item Azure Function/Trigger/SQL C#
35-
KustoInputBinding kustoinput item Azure Function/Input/Kusto C#
36-
KustoOutputBinding kustooutput item Azure Function/Output/Kusto C#
37-
EventGridBlobTrigger eventgridblob item Azure Function/Trigger/Blob C#
38-
DaprServiceInvocationTrigger daprServiceInvocationTrigger item Azure Function/Trigger/Dapr C#
39-
DaprTopicTrigger daprTopicTrigger item Azure Function/Trigger/Dapr C#
40-
DaprPublishOutputBinding daprPublishOutputBinding item Azure Function/Trigger/Dapr C#
11+
Template Name Short Name Type Tags Language
12+
-------------------- ---------- ------- ---------- --------
13+
NUnit 3 Test Project nunit project Test/NUnit C#,F#,VB
14+
NUnit 3 Test Item nunit-test item Test/NUnit C#,F#,VB
4115

Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Microsoft.Azure.WebJobs.ItemTemplates
2-
Package version: 4.0.3062
3-
Details: Collection of templates for Azure Functions
1+
NUnit3.DotNetNew.Template
2+
Package version: 1.9.0
3+
Details: Project and item templates containing basic NUnit 3 Test Project.
44
Source Feed: dotnet-public [https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json]
55
Authors:
6-
Microsoft
6+
akharlov
77
License Metadata:
8-
License Url: https://go.microsoft.com/fwlink/?linkid=2028464
9-
Repository Url: https://go.microsoft.com/fwlink/?linkid=848145
8+
License Url: https://github.com/nunit/dotnet-new-nunit/blob/master/LICENSE
9+
Repository Url: https://github.com/nunit/dotnet-new-nunit

test/dotnet-new.Tests/DotnetNewDetailsTest.Approval.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public Task CanDisplayDetails_RemotePackage_OtherFeedWithVersion()
6161
[Fact]
6262
public Task CanDisplayDetails_RemotePackage_OtherFeedNoVersion()
6363
{
64-
CommandResult commandResult = new DotnetNewCommand(_log, "details", "Microsoft.Azure.WebJobs.ItemTemplates")
64+
CommandResult commandResult = new DotnetNewCommand(_log, "details", "NUnit3.DotNetNew.Template")
6565
.WithCustomHive(CreateTemporaryFolder(folderName: "Home"))
6666
.WithWorkingDirectory(CreateTemporaryFolder())
6767
.Execute();
@@ -129,15 +129,15 @@ public Task CanDisplayDetails_InstalledPackage_NuGetFeed()
129129
public Task CanDisplayDetails_InstalledPackage_OtherFeed()
130130
{
131131
string home = CreateTemporaryFolder(folderName: "Home");
132-
new DotnetNewCommand(_log, "install", "Microsoft.Azure.WebJobs.ItemTemplates")
132+
new DotnetNewCommand(_log, "install", "NUnit3.DotNetNew.Template")
133133
.WithoutBuiltInTemplates().WithCustomHive(home)
134134
.WithWorkingDirectory(CreateTemporaryFolder())
135135
.Execute()
136136
.Should()
137137
.ExitWith(0)
138138
.And.NotHaveStdErr();
139139

140-
CommandResult commandResult = new DotnetNewCommand(_log, "details", "Microsoft.Azure.WebJobs.ItemTemplates")
140+
CommandResult commandResult = new DotnetNewCommand(_log, "details", "NUnit3.DotNetNew.Template")
141141
.WithCustomHive(home).WithoutBuiltInTemplates()
142142
.WithWorkingDirectory(CreateTemporaryFolder())
143143
.Execute();

0 commit comments

Comments
 (0)