From 6fddbe6e5adbf3a37dc9a60d227956af0b1dfc95 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Mon, 18 Nov 2024 14:35:32 -0700 Subject: [PATCH] - Linting --- EasyPost.Tests/ExceptionsTests/ExceptionsTest.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EasyPost.Tests/ExceptionsTests/ExceptionsTest.cs b/EasyPost.Tests/ExceptionsTests/ExceptionsTest.cs index 5ba92689..4fb58127 100644 --- a/EasyPost.Tests/ExceptionsTests/ExceptionsTest.cs +++ b/EasyPost.Tests/ExceptionsTests/ExceptionsTest.cs @@ -15,6 +15,7 @@ namespace EasyPost.Tests.ExceptionsTests { +#pragma warning disable CA2263 public class ExceptionsTests : UnitTest { public ExceptionsTests() : base("exceptions") @@ -31,6 +32,7 @@ public async Task TestApiExceptionPrettyPrint() // Generate a dummy HttpResponseMessage with the given status code to parse HttpStatusCode httpStatusCode = (HttpStatusCode)Enum.Parse(typeof(HttpStatusCode), statusCode.ToString(CultureInfo.InvariantCulture)); + HttpResponseMessage response = new() { StatusCode = httpStatusCode }; ApiError generatedError = await ApiError.FromErrorResponse(response); @@ -480,4 +482,5 @@ public async Task TestHTTPTimeoutFriendlyException() #endregion } +#pragma warning restore CA2263 }