File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
EasyPost.Tests/ExceptionsTests Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 15
15
16
16
namespace EasyPost . Tests . ExceptionsTests
17
17
{
18
+ #pragma warning disable CA2263
18
19
public class ExceptionsTests : UnitTest
19
20
{
20
21
public ExceptionsTests ( ) : base ( "exceptions" )
@@ -31,6 +32,7 @@ public async Task TestApiExceptionPrettyPrint()
31
32
32
33
// Generate a dummy HttpResponseMessage with the given status code to parse
33
34
HttpStatusCode httpStatusCode = ( HttpStatusCode ) Enum . Parse ( typeof ( HttpStatusCode ) , statusCode . ToString ( CultureInfo . InvariantCulture ) ) ;
35
+
34
36
HttpResponseMessage response = new ( ) { StatusCode = httpStatusCode } ;
35
37
36
38
ApiError generatedError = await ApiError . FromErrorResponse ( response ) ;
@@ -480,4 +482,5 @@ public async Task TestHTTPTimeoutFriendlyException()
480
482
481
483
#endregion
482
484
}
485
+ #pragma warning restore CA2263
483
486
}
You can’t perform that action at this time.
0 commit comments