mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-20 16:23:42 +01:00
Add NUnit test project
This commit is contained in:
27
test/WireMock.Net.NUnitTests/UnitTest1.cs
Normal file
27
test/WireMock.Net.NUnitTests/UnitTest1.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using WireMock.Server;
|
||||
|
||||
namespace WireMock.Net.NUnitTests;
|
||||
|
||||
[TestFixture]
|
||||
public class Test
|
||||
{
|
||||
private WireMockServer server;
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
server = WireMockServer.Start();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SomeTest()
|
||||
{
|
||||
Assert.Pass();
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
server.Stop();
|
||||
}
|
||||
}
|
||||
1
test/WireMock.Net.NUnitTests/Usings.cs
Normal file
1
test/WireMock.Net.NUnitTests/Usings.cs
Normal file
@@ -0,0 +1 @@
|
||||
global using NUnit.Framework;
|
||||
19
test/WireMock.Net.NUnitTests/WireMock.Net.NUnitTests.csproj
Normal file
19
test/WireMock.Net.NUnitTests/WireMock.Net.NUnitTests.csproj
Normal file
@@ -0,0 +1,19 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
|
||||
<PackageReference Include="NUnit" Version="3.13.3" />
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
|
||||
<PackageReference Include="NUnit.Analyzers" Version="3.3.0" />
|
||||
<PackageReference Include="coverlet.collector" Version="3.1.2" />
|
||||
<PackageReference Include="WireMock.Net" Version="1.5.13" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user