diff --git a/EasyPost.Tests/ServicesTests/AddressServiceTest.cs b/EasyPost.Tests/ServicesTests/AddressServiceTest.cs index f26219a85..49ce68473 100644 --- a/EasyPost.Tests/ServicesTests/AddressServiceTest.cs +++ b/EasyPost.Tests/ServicesTests/AddressServiceTest.cs @@ -138,7 +138,7 @@ public async Task TestGetNextPage() // If the first ID in the next page is the same as the first ID in the current page, then we didn't get the next page Assert.NotEqual(collection.Addresses[0].Id, nextPageCollection.Addresses[0].Id); } - catch (EndOfPaginationError e) // There's no second page, that's not a failure + catch (EndOfPaginationError) // There's no second page, that's not a failure { Assert.True(true); } diff --git a/EasyPost.Tests/ServicesTests/EventServiceTest.cs b/EasyPost.Tests/ServicesTests/EventServiceTest.cs index d810c4140..0408f41a6 100644 --- a/EasyPost.Tests/ServicesTests/EventServiceTest.cs +++ b/EasyPost.Tests/ServicesTests/EventServiceTest.cs @@ -66,7 +66,7 @@ public async Task TestGetNextPage() // If the first ID in the next page is the same as the first ID in the current page, then we didn't get the next page Assert.NotEqual(collection.Events[0].Id, nextPageCollection.Events[0].Id); } - catch (EndOfPaginationError e) // There's no second page, that's not a failure + catch (EndOfPaginationError) // There's no second page, that's not a failure { Assert.True(true); } diff --git a/EasyPost.Tests/ServicesTests/InsuranceServiceTest.cs b/EasyPost.Tests/ServicesTests/InsuranceServiceTest.cs index 07c3906a6..954f5bc8c 100644 --- a/EasyPost.Tests/ServicesTests/InsuranceServiceTest.cs +++ b/EasyPost.Tests/ServicesTests/InsuranceServiceTest.cs @@ -72,7 +72,7 @@ public async Task TestGetNextPage() // If the first ID in the next page is the same as the first ID in the current page, then we didn't get the next page Assert.NotEqual(collection.Insurances[0].Id, nextPageCollection.Insurances[0].Id); } - catch (EndOfPaginationError e) // There's no second page, that's not a failure + catch (EndOfPaginationError) // There's no second page, that's not a failure { Assert.True(true); } diff --git a/EasyPost.Tests/ServicesTests/PickupServiceTest.cs b/EasyPost.Tests/ServicesTests/PickupServiceTest.cs index 395ae8a33..380a7e3b0 100644 --- a/EasyPost.Tests/ServicesTests/PickupServiceTest.cs +++ b/EasyPost.Tests/ServicesTests/PickupServiceTest.cs @@ -90,7 +90,7 @@ public async Task TestGetNextPage() // If the first ID in the next page is the same as the first ID in the current page, then we didn't get the next page Assert.NotEqual(collection.Pickups[0].Id, nextPageCollection.Pickups[0].Id); } - catch (EndOfPaginationError e) // There's no second page, that's not a failure + catch (EndOfPaginationError) // There's no second page, that's not a failure { Assert.True(true); } diff --git a/EasyPost.Tests/ServicesTests/ReferralCustomerServiceTest.cs b/EasyPost.Tests/ServicesTests/ReferralCustomerServiceTest.cs index 7f690b288..c00c37502 100644 --- a/EasyPost.Tests/ServicesTests/ReferralCustomerServiceTest.cs +++ b/EasyPost.Tests/ServicesTests/ReferralCustomerServiceTest.cs @@ -74,7 +74,7 @@ public async Task TestGetNextPage() // If the first ID in the next page is the same as the first ID in the current page, then we didn't get the next page Assert.NotEqual(collection.ReferralCustomers[0].Id, nextPageCollection.ReferralCustomers[0].Id); } - catch (EndOfPaginationError e) // There's no second page, that's not a failure + catch (EndOfPaginationError) // There's no second page, that's not a failure { Assert.True(true); } diff --git a/EasyPost.Tests/ServicesTests/RefundServiceTest.cs b/EasyPost.Tests/ServicesTests/RefundServiceTest.cs index c5e75b19c..425c95e4b 100644 --- a/EasyPost.Tests/ServicesTests/RefundServiceTest.cs +++ b/EasyPost.Tests/ServicesTests/RefundServiceTest.cs @@ -79,7 +79,7 @@ public async Task TestGetNextPage() // If the first ID in the next page is the same as the first ID in the current page, then we didn't get the next page Assert.NotEqual(collection.Refunds[0].Id, nextPageCollection.Refunds[0].Id); } - catch (EndOfPaginationError e) // There's no second page, that's not a failure + catch (EndOfPaginationError) // There's no second page, that's not a failure { Assert.True(true); } diff --git a/EasyPost.Tests/ServicesTests/ReportServiceTest.cs b/EasyPost.Tests/ServicesTests/ReportServiceTest.cs index 9f44c6b37..72b814e4e 100644 --- a/EasyPost.Tests/ServicesTests/ReportServiceTest.cs +++ b/EasyPost.Tests/ServicesTests/ReportServiceTest.cs @@ -143,7 +143,7 @@ public async Task TestGetNextPage() // If the first ID in the next page is the same as the first ID in the current page, then we didn't get the next page Assert.NotEqual(collection.Reports[0].Id, nextPageCollection.Reports[0].Id); } - catch (EndOfPaginationError e) // There's no second page, that's not a failure + catch (EndOfPaginationError) // There's no second page, that's not a failure { Assert.True(true); } diff --git a/EasyPost.Tests/ServicesTests/ScanFormServiceTest.cs b/EasyPost.Tests/ServicesTests/ScanFormServiceTest.cs index 82bfd81a1..b3164b924 100644 --- a/EasyPost.Tests/ServicesTests/ScanFormServiceTest.cs +++ b/EasyPost.Tests/ServicesTests/ScanFormServiceTest.cs @@ -68,7 +68,7 @@ public async Task TestGetNextPage() // If the first ID in the next page is the same as the first ID in the current page, then we didn't get the next page Assert.NotEqual(collection.ScanForms[0].Id, nextPageCollection.ScanForms[0].Id); } - catch (EndOfPaginationError e) // There's no second page, that's not a failure + catch (EndOfPaginationError) // There's no second page, that's not a failure { Assert.True(true); } diff --git a/EasyPost.Tests/ServicesTests/ShipmentServiceTest.cs b/EasyPost.Tests/ServicesTests/ShipmentServiceTest.cs index 690ba2f01..d5dd676bd 100644 --- a/EasyPost.Tests/ServicesTests/ShipmentServiceTest.cs +++ b/EasyPost.Tests/ServicesTests/ShipmentServiceTest.cs @@ -185,7 +185,7 @@ public async Task TestGetNextPage() // If the first ID in the next page is the same as the first ID in the current page, then we didn't get the next page Assert.NotEqual(collection.Shipments[0].Id, nextPageCollection.Shipments[0].Id); } - catch (EndOfPaginationError e) // There's no second page, that's not a failure + catch (EndOfPaginationError) // There's no second page, that's not a failure { Assert.True(true); } diff --git a/EasyPost.Tests/ServicesTests/TrackerServiceTest.cs b/EasyPost.Tests/ServicesTests/TrackerServiceTest.cs index 9608fa0d1..9ef6995fd 100644 --- a/EasyPost.Tests/ServicesTests/TrackerServiceTest.cs +++ b/EasyPost.Tests/ServicesTests/TrackerServiceTest.cs @@ -106,7 +106,7 @@ public async Task TestGetNextPage() // If the first ID in the next page is the same as the first ID in the current page, then we didn't get the next page Assert.NotEqual(collection.Trackers[0].Id, nextPageCollection.Trackers[0].Id); } - catch (EndOfPaginationError e) // There's no second page, that's not a failure + catch (EndOfPaginationError) // There's no second page, that's not a failure { Assert.True(true); } diff --git a/EasyPost.Tests/_Utilities/Assertions/CollectionAsserts.cs b/EasyPost.Tests/_Utilities/Assertions/CollectionAsserts.cs index a0d0f3616..085d1715f 100644 --- a/EasyPost.Tests/_Utilities/Assertions/CollectionAsserts.cs +++ b/EasyPost.Tests/_Utilities/Assertions/CollectionAsserts.cs @@ -52,7 +52,7 @@ public static void Any(IEnumerable collection, Action action) passed = true; break; // if we get here, we passed, so we can stop iterating } - catch (Exception ex) + catch (Exception) { // we don't care about the exception, we just want to keep iterating }