Skip to content

Commit 450c3b2

Browse files
committed
switched to NUnit for testing
1 parent 309ed39 commit 450c3b2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ui/tests/ApiClient.Tests/HealthTests.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
using WireMock.Server;
22
using WireMock.RequestBuilders;
33
using WireMock.ResponseBuilders;
4-
using Xunit;
4+
using System;
5+
using System.Net.Http;
6+
using System.Threading.Tasks;
7+
using NUnit.Framework;
58

69
public class HealthTests : IDisposable
710
{
@@ -18,8 +21,8 @@ public HealthTests()
1821
_client = new ApiClient(http);
1922
}
2023

21-
[Fact(DisplayName = "Health returns true on 200")]
22-
public async Task Health_Ok() => Assert.True(await _client.HealthAsync());
24+
[Test(Description = "Health returns true on 200")]
25+
public async Task Health_Ok() => Assert.That(await _client.HealthAsync());
2326

2427
public void Dispose() => _server.Stop();
2528
}

0 commit comments

Comments
 (0)