diff --git a/EasyPost.Tests/ExceptionsTests/ExceptionsTest.cs b/EasyPost.Tests/ExceptionsTests/ExceptionsTest.cs index 5ba926891..4fb58127b 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 }