Skip to content

Commit a99c513

Browse files
Changing xUnit to MSTEST (#12)
1 parent 2fc316a commit a99c513

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

tests/Peppermint.ReverseProxy.Tests/CountryTest.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
using NFluent;
1+
using Microsoft.VisualStudio.TestTools.UnitTesting;
2+
using NFluent;
23
using Peppermint.ReverseProxy.Tests.Abstract;
34
using System;
45
using System.Collections.Generic;
56
using System.Linq;
67
using System.Net;
78
using System.Text;
89
using System.Threading.Tasks;
9-
using Xunit;
1010

1111
namespace Peppermint.ReverseProxy.Tests
1212
{
1313
/// <summary>
1414
/// Country API test.
1515
/// </summary>
1616
/// <seealso cref="Peppermint.ReverseProxy.Tests.Abstract.BaseReverseProxyTest" />
17+
[TestClass]
1718
public class CountryTest : BaseReverseProxyTest
1819
{
1920
/// <summary>
2021
/// Ping
2122
/// </summary>
22-
[Fact]
23+
[TestMethod]
2324
public void GivenCountryWhenCallApiThenReturnFrenchRepublic()
2425
{
2526
var client = _factory.CreateDefaultClient();

tests/Peppermint.ReverseProxy.Tests/Peppermint.ReverseProxy.Tests.csproj

+2-5
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,9 @@
2828
<ItemGroup>
2929
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.8" />
3030
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.1" />
31+
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
32+
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
3133
<PackageReference Include="NFluent" Version="2.8.0" />
32-
<PackageReference Include="xunit" Version="2.4.2" />
33-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
34-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
35-
<PrivateAssets>all</PrivateAssets>
36-
</PackageReference>
3734
<PackageReference Include="coverlet.collector" Version="3.1.2">
3835
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3936
<PrivateAssets>all</PrivateAssets>

tests/Peppermint.ReverseProxy.Tests/StartupTests.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Microsoft.AspNetCore.Mvc.Testing;
22
using Microsoft.VisualStudio.TestPlatform.TestHost;
33
using NFluent;
4-
using Xunit;
54
using Peppermint.ReverseProxy;
65
using System.Net.Http;
76
using System;
@@ -11,19 +10,21 @@
1110
using Microsoft.AspNetCore.Http;
1211
using Peppermint.ReverseProxy.Configuration;
1312
using Peppermint.ReverseProxy.Tests.Abstract;
13+
using Microsoft.VisualStudio.TestTools.UnitTesting;
1414

1515
namespace Peppermint.ReverseProxy.Tests
1616
{
1717

1818
/// <summary>
1919
/// Startup tests.
2020
/// </summary>
21+
[TestClass]
2122
public class StartupTests : BaseReverseProxyTest
2223
{
2324
/// <summary>
2425
/// Startup test
2526
/// </summary>
26-
[Fact]
27+
[TestMethod]
2728
public void GivenReverseProxyThenStartup()
2829
{
2930
Check.That(_factory.Server)
@@ -33,7 +34,7 @@ public void GivenReverseProxyThenStartup()
3334
/// <summary>
3435
/// Http Ping.
3536
/// </summary>
36-
[Fact]
37+
[TestMethod]
3738
public void GivenReverseProxyAndBaseUrlThenReturnPing()
3839
{
3940
var client = _factory.CreateDefaultClient();

0 commit comments

Comments
 (0)