Fix unit test naming issue.

This commit is contained in:
David Lievrouw 2019-07-10 21:13:21 +02:00
parent f9ce987cc5
commit 2606d91913
4 changed files with 8 additions and 8 deletions

View File

@ -24,7 +24,7 @@ namespace Ocelot.UnitTests.LoadBalancer
} }
[Fact] [Fact]
public void should_return_expected_name() public void should_return_instance_of_expected_load_balancer_type()
{ {
var reRoute = new DownstreamReRouteBuilder() var reRoute = new DownstreamReRouteBuilder()
.WithLoadBalancerOptions(new LoadBalancerOptions("myType", "myKey", 1000)) .WithLoadBalancerOptions(new LoadBalancerOptions("myType", "myKey", 1000))
@ -37,7 +37,7 @@ namespace Ocelot.UnitTests.LoadBalancer
} }
[Fact] [Fact]
public void should_return_instance_of_expected_load_balancer_type() public void should_return_expected_name()
{ {
this.When(x => x.WhenIGetTheLoadBalancerTypeName()) this.When(x => x.WhenIGetTheLoadBalancerTypeName())
.Then(x => x.ThenTheLoadBalancerTypeIs("CookieStickySessions")) .Then(x => x.ThenTheLoadBalancerTypeIs("CookieStickySessions"))

View File

@ -24,7 +24,7 @@ namespace Ocelot.UnitTests.LoadBalancer
} }
[Fact] [Fact]
public void should_return_expected_name() public void should_return_instance_of_expected_load_balancer_type()
{ {
var reRoute = new DownstreamReRouteBuilder() var reRoute = new DownstreamReRouteBuilder()
.WithServiceName("myService") .WithServiceName("myService")
@ -37,7 +37,7 @@ namespace Ocelot.UnitTests.LoadBalancer
} }
[Fact] [Fact]
public void should_return_instance_of_expected_load_balancer_type() public void should_return_expected_name()
{ {
this.When(x => x.WhenIGetTheLoadBalancerTypeName()) this.When(x => x.WhenIGetTheLoadBalancerTypeName())
.Then(x => x.ThenTheLoadBalancerTypeIs("LeastConnection")) .Then(x => x.ThenTheLoadBalancerTypeIs("LeastConnection"))

View File

@ -24,7 +24,7 @@ namespace Ocelot.UnitTests.LoadBalancer
} }
[Fact] [Fact]
public void should_return_expected_name() public void should_return_instance_of_expected_load_balancer_type()
{ {
var reRoute = new DownstreamReRouteBuilder() var reRoute = new DownstreamReRouteBuilder()
.Build(); .Build();
@ -36,7 +36,7 @@ namespace Ocelot.UnitTests.LoadBalancer
} }
[Fact] [Fact]
public void should_return_instance_of_expected_load_balancer_type() public void should_return_expected_name()
{ {
this.When(x => x.WhenIGetTheLoadBalancerTypeName()) this.When(x => x.WhenIGetTheLoadBalancerTypeName())
.Then(x => x.ThenTheLoadBalancerTypeIs("NoLoadBalancer")) .Then(x => x.ThenTheLoadBalancerTypeIs("NoLoadBalancer"))

View File

@ -24,7 +24,7 @@ namespace Ocelot.UnitTests.LoadBalancer
} }
[Fact] [Fact]
public void should_return_expected_name() public void should_return_instance_of_expected_load_balancer_type()
{ {
var reRoute = new DownstreamReRouteBuilder() var reRoute = new DownstreamReRouteBuilder()
.Build(); .Build();
@ -36,7 +36,7 @@ namespace Ocelot.UnitTests.LoadBalancer
} }
[Fact] [Fact]
public void should_return_instance_of_expected_load_balancer_type() public void should_return_expected_name()
{ {
this.When(x => x.WhenIGetTheLoadBalancerTypeName()) this.When(x => x.WhenIGetTheLoadBalancerTypeName())
.Then(x => x.ThenTheLoadBalancerTypeIs("RoundRobin")) .Then(x => x.ThenTheLoadBalancerTypeIs("RoundRobin"))