mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 15:30:49 +08:00 
			
		
		
		
	test
This commit is contained in:
		@@ -38,6 +38,14 @@
 | 
			
		||||
            error.ShouldBeOfType<RequestCanceledError>();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_return_request_canceled_for_subtype()
 | 
			
		||||
        {
 | 
			
		||||
            var error = _mapper.Map(new SomeException());
 | 
			
		||||
 | 
			
		||||
            error.ShouldBeOfType<RequestCanceledError>();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        [Fact]
 | 
			
		||||
        public void should_return_error_from_mapper()
 | 
			
		||||
        {
 | 
			
		||||
@@ -56,5 +64,8 @@
 | 
			
		||||
 | 
			
		||||
            error.ShouldBeOfType<AnyError>();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private class SomeException : OperationCanceledException
 | 
			
		||||
        { }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user