mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:22:50 +08:00
Fix unit test naming issue.
This commit is contained in:
parent
f9ce987cc5
commit
2606d91913
@ -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"))
|
||||||
|
@ -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"))
|
||||||
|
@ -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"))
|
||||||
|
@ -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"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user