mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 15:30:49 +08:00 
			
		
		
		
	Fix unit test naming issue.
This commit is contained in:
		@@ -24,7 +24,7 @@ namespace Ocelot.UnitTests.LoadBalancer
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_return_expected_name()
 | 
			
		||||
        public void should_return_instance_of_expected_load_balancer_type()
 | 
			
		||||
        {
 | 
			
		||||
            var reRoute = new DownstreamReRouteBuilder()
 | 
			
		||||
                .WithLoadBalancerOptions(new LoadBalancerOptions("myType", "myKey", 1000))
 | 
			
		||||
@@ -37,7 +37,7 @@ namespace Ocelot.UnitTests.LoadBalancer
 | 
			
		||||
        }
 | 
			
		||||
                
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_return_instance_of_expected_load_balancer_type()
 | 
			
		||||
        public void should_return_expected_name()
 | 
			
		||||
        {
 | 
			
		||||
            this.When(x => x.WhenIGetTheLoadBalancerTypeName())
 | 
			
		||||
                .Then(x => x.ThenTheLoadBalancerTypeIs("CookieStickySessions"))
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@ namespace Ocelot.UnitTests.LoadBalancer
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_return_expected_name()
 | 
			
		||||
        public void should_return_instance_of_expected_load_balancer_type()
 | 
			
		||||
        {
 | 
			
		||||
            var reRoute = new DownstreamReRouteBuilder()
 | 
			
		||||
                .WithServiceName("myService")
 | 
			
		||||
@@ -37,7 +37,7 @@ namespace Ocelot.UnitTests.LoadBalancer
 | 
			
		||||
        }
 | 
			
		||||
                
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_return_instance_of_expected_load_balancer_type()
 | 
			
		||||
        public void should_return_expected_name()
 | 
			
		||||
        {
 | 
			
		||||
            this.When(x => x.WhenIGetTheLoadBalancerTypeName())
 | 
			
		||||
                .Then(x => x.ThenTheLoadBalancerTypeIs("LeastConnection"))
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@ namespace Ocelot.UnitTests.LoadBalancer
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_return_expected_name()
 | 
			
		||||
        public void should_return_instance_of_expected_load_balancer_type()
 | 
			
		||||
        {
 | 
			
		||||
            var reRoute = new DownstreamReRouteBuilder()
 | 
			
		||||
                .Build();
 | 
			
		||||
@@ -36,7 +36,7 @@ namespace Ocelot.UnitTests.LoadBalancer
 | 
			
		||||
        }
 | 
			
		||||
                
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_return_instance_of_expected_load_balancer_type()
 | 
			
		||||
        public void should_return_expected_name()
 | 
			
		||||
        {
 | 
			
		||||
            this.When(x => x.WhenIGetTheLoadBalancerTypeName())
 | 
			
		||||
                .Then(x => x.ThenTheLoadBalancerTypeIs("NoLoadBalancer"))
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@ namespace Ocelot.UnitTests.LoadBalancer
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_return_expected_name()
 | 
			
		||||
        public void should_return_instance_of_expected_load_balancer_type()
 | 
			
		||||
        {
 | 
			
		||||
            var reRoute = new DownstreamReRouteBuilder()
 | 
			
		||||
                .Build();
 | 
			
		||||
@@ -36,7 +36,7 @@ namespace Ocelot.UnitTests.LoadBalancer
 | 
			
		||||
        }
 | 
			
		||||
                
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_return_instance_of_expected_load_balancer_type()
 | 
			
		||||
        public void should_return_expected_name()
 | 
			
		||||
        {
 | 
			
		||||
            this.When(x => x.WhenIGetTheLoadBalancerTypeName())
 | 
			
		||||
                .Then(x => x.ThenTheLoadBalancerTypeIs("RoundRobin"))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user