Commit a99c513 1 parent 2fc316a commit a99c513 Copy full SHA for a99c513
File tree 3 files changed +10
-11
lines changed
tests/Peppermint.ReverseProxy.Tests
3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
- using NFluent ;
1
+ using Microsoft . VisualStudio . TestTools . UnitTesting ;
2
+ using NFluent ;
2
3
using Peppermint . ReverseProxy . Tests . Abstract ;
3
4
using System ;
4
5
using System . Collections . Generic ;
5
6
using System . Linq ;
6
7
using System . Net ;
7
8
using System . Text ;
8
9
using System . Threading . Tasks ;
9
- using Xunit ;
10
10
11
11
namespace Peppermint . ReverseProxy . Tests
12
12
{
13
13
/// <summary>
14
14
/// Country API test.
15
15
/// </summary>
16
16
/// <seealso cref="Peppermint.ReverseProxy.Tests.Abstract.BaseReverseProxyTest" />
17
+ [ TestClass ]
17
18
public class CountryTest : BaseReverseProxyTest
18
19
{
19
20
/// <summary>
20
21
/// Ping
21
22
/// </summary>
22
- [ Fact ]
23
+ [ TestMethod ]
23
24
public void GivenCountryWhenCallApiThenReturnFrenchRepublic ( )
24
25
{
25
26
var client = _factory . CreateDefaultClient ( ) ;
Original file line number Diff line number Diff line change 28
28
<ItemGroup >
29
29
<PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" 6.0.8" />
30
30
<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" />
31
33
<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 >
37
34
<PackageReference Include =" coverlet.collector" Version =" 3.1.2" >
38
35
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
39
36
<PrivateAssets >all</PrivateAssets >
Original file line number Diff line number Diff line change 1
1
using Microsoft . AspNetCore . Mvc . Testing ;
2
2
using Microsoft . VisualStudio . TestPlatform . TestHost ;
3
3
using NFluent ;
4
- using Xunit ;
5
4
using Peppermint . ReverseProxy ;
6
5
using System . Net . Http ;
7
6
using System ;
11
10
using Microsoft . AspNetCore . Http ;
12
11
using Peppermint . ReverseProxy . Configuration ;
13
12
using Peppermint . ReverseProxy . Tests . Abstract ;
13
+ using Microsoft . VisualStudio . TestTools . UnitTesting ;
14
14
15
15
namespace Peppermint . ReverseProxy . Tests
16
16
{
17
17
18
18
/// <summary>
19
19
/// Startup tests.
20
20
/// </summary>
21
+ [ TestClass ]
21
22
public class StartupTests : BaseReverseProxyTest
22
23
{
23
24
/// <summary>
24
25
/// Startup test
25
26
/// </summary>
26
- [ Fact ]
27
+ [ TestMethod ]
27
28
public void GivenReverseProxyThenStartup ( )
28
29
{
29
30
Check . That ( _factory . Server )
@@ -33,7 +34,7 @@ public void GivenReverseProxyThenStartup()
33
34
/// <summary>
34
35
/// Http Ping.
35
36
/// </summary>
36
- [ Fact ]
37
+ [ TestMethod ]
37
38
public void GivenReverseProxyAndBaseUrlThenReturnPing ( )
38
39
{
39
40
var client = _factory . CreateDefaultClient ( ) ;
You can’t perform that action at this time.
0 commit comments