diff --git a/src/Tests/TransmissionManager.Api.IntegrationTests/DeleteTorrentByIdTests.cs b/src/Tests/TransmissionManager.Api.IntegrationTests/DeleteTorrentByIdTests.cs index 36b8e64..53bf272 100644 --- a/src/Tests/TransmissionManager.Api.IntegrationTests/DeleteTorrentByIdTests.cs +++ b/src/Tests/TransmissionManager.Api.IntegrationTests/DeleteTorrentByIdTests.cs @@ -48,7 +48,7 @@ public async Task DeleteTorrentByIdAsync_WhenGivenExistingId_DeletesTorrent() } [Test] - public async Task UpdateTorrentByIdAsync_WhenGivenNonExistingId_ReturnsNotFound() + public async Task UpdateTorrentByIdAsync_WhenGivenNonExistentId_ReturnsNotFound() { var response = await _client.DeleteAsync($"{TestData.Endpoints.Torrents}/-1").ConfigureAwait(false); diff --git a/src/Tests/TransmissionManager.Api.IntegrationTests/FindTorrentByIdTests.cs b/src/Tests/TransmissionManager.Api.IntegrationTests/FindTorrentByIdTests.cs index 09f6859..3a64515 100644 --- a/src/Tests/TransmissionManager.Api.IntegrationTests/FindTorrentByIdTests.cs +++ b/src/Tests/TransmissionManager.Api.IntegrationTests/FindTorrentByIdTests.cs @@ -43,7 +43,7 @@ public async Task FindTorrentByIdAsync_WhenGivenExistingTorrentId_ReturnsTorrent } [Test] - public async Task FindTorrentByIdAsync_WhenGivenNonExistingTorrentId_ReturnsNotFound() + public async Task FindTorrentByIdAsync_WhenGivenNonExistentTorrentId_ReturnsNotFound() { var response = await _client.GetAsync($"{TestData.Endpoints.Torrents}/999").ConfigureAwait(false); diff --git a/src/Tests/TransmissionManager.Api.IntegrationTests/FindTorrentPageTests.cs b/src/Tests/TransmissionManager.Api.IntegrationTests/FindTorrentPageTests.cs index b8d51ec..4a156aa 100644 --- a/src/Tests/TransmissionManager.Api.IntegrationTests/FindTorrentPageTests.cs +++ b/src/Tests/TransmissionManager.Api.IntegrationTests/FindTorrentPageTests.cs @@ -110,7 +110,7 @@ public async Task FindTorrentPageAsync_WhenGivenCorrectHashStringFilter_ReturnsM } [Test] - public async Task FindTorrentPageAsync_WhenGivenNonExistingPaginationValues_ReturnsEmptyTorrentPage() + public async Task FindTorrentPageAsync_WhenGivenNonExistentPaginationValues_ReturnsEmptyTorrentPage() { var parameters = new FindTorrentPageParameters(Take: 5, AfterId: 100); @@ -121,7 +121,7 @@ public async Task FindTorrentPageAsync_WhenGivenNonExistingPaginationValues_Retu } [Test] - public async Task FindTorrentPageAsync_WhenGivenNonExistingFilterValues_ReturnsEmptyTorrentPage() + public async Task FindTorrentPageAsync_WhenGivenNonExistentFilterValues_ReturnsEmptyTorrentPage() { var parameters = new FindTorrentPageParameters(PropertyStartsWith: "NoSuchTextAnywhere"); diff --git a/src/Tests/TransmissionManager.Api.IntegrationTests/RefreshTorrentByIdTests.cs b/src/Tests/TransmissionManager.Api.IntegrationTests/RefreshTorrentByIdTests.cs index cd3010a..0116e64 100644 --- a/src/Tests/TransmissionManager.Api.IntegrationTests/RefreshTorrentByIdTests.cs +++ b/src/Tests/TransmissionManager.Api.IntegrationTests/RefreshTorrentByIdTests.cs @@ -221,7 +221,7 @@ public async Task RefreshTorrentByIdAsync_WhenGivenExistingTorrentIdWithOutdated } [Test] - public async Task RefreshTorrentByIdAsync_WhenGivenExistingTorrentIdWithNonExistingHash_RefreshesTorrentAndReturns422() + public async Task RefreshTorrentByIdAsync_WhenGivenExistingTorrentIdWithNonExistentHash_RefreshesTorrentAndReturns422() { var response = await _client.PostAsync($"{TestData.Endpoints.Torrents}/3", null).ConfigureAwait(false); diff --git a/src/Tests/TransmissionManager.Api.IntegrationTests/UpdateTorrentByIdTests.cs b/src/Tests/TransmissionManager.Api.IntegrationTests/UpdateTorrentByIdTests.cs index f53c948..555f7a0 100644 --- a/src/Tests/TransmissionManager.Api.IntegrationTests/UpdateTorrentByIdTests.cs +++ b/src/Tests/TransmissionManager.Api.IntegrationTests/UpdateTorrentByIdTests.cs @@ -61,7 +61,7 @@ public async Task UpdateTorrentByIdAsync_WhenGivenExistingIdAndValidData_Updates } [Test] - public async Task UpdateTorrentByIdAsync_WhenGivenNonExistingId_ReturnsNotFound() + public async Task UpdateTorrentByIdAsync_WhenGivenNonExistentId_ReturnsNotFound() { var dto = new UpdateTorrentByIdRequest { DownloadDir = "/videos" }; diff --git a/src/Tests/TransmissionManager.Database.Tests/TorrentServiceCommandTests.cs b/src/Tests/TransmissionManager.Database.Tests/TorrentServiceCommandTests.cs index 82f3c74..8407aa6 100644 --- a/src/Tests/TransmissionManager.Database.Tests/TorrentServiceCommandTests.cs +++ b/src/Tests/TransmissionManager.Database.Tests/TorrentServiceCommandTests.cs @@ -131,7 +131,7 @@ public async Task TryUpdateOneByIdAsync_WhenGivenEmptyStringMagnetAndCron_SetsMa } [Test] - public async Task TryUpdateOneByIdAsync_WhenGivenNonExistingTorrentId_DoesNotUpdateTorrent() + public async Task TryUpdateOneByIdAsync_WhenGivenNonExistentTorrentId_DoesNotUpdateTorrent() { using var context = CreateContext(); var service = new TorrentService(context); @@ -165,7 +165,7 @@ public async Task TryDeleteOneByIdAsync_WhenGivenExistingTorrentId_DeletesTorren } [Test] - public async Task TryDeleteOneByIdAsync_WhenGivenNonExistingTorrentId_DoesNotDeleteTorrent() + public async Task TryDeleteOneByIdAsync_WhenGivenNonExistentTorrentId_DoesNotDeleteTorrent() { using var context = CreateContext(); var service = new TorrentService(context); diff --git a/src/Tests/TransmissionManager.Database.Tests/TorrentServiceQueryTests.cs b/src/Tests/TransmissionManager.Database.Tests/TorrentServiceQueryTests.cs index 9902be3..4868d9e 100644 --- a/src/Tests/TransmissionManager.Database.Tests/TorrentServiceQueryTests.cs +++ b/src/Tests/TransmissionManager.Database.Tests/TorrentServiceQueryTests.cs @@ -19,7 +19,7 @@ public async Task FindOneByIdAsync_WhenGivenExistingTorrentId_ReturnsTorrent() } [Test] - public async Task FindOneByIdAsync_WhenGivenNonExistingTorrentId_ReturnsNull() + public async Task FindOneByIdAsync_WhenGivenNonExistentTorrentId_ReturnsNull() { using var context = CreateContext(); var service = new TorrentService(context); diff --git a/src/Tests/TransmissionManager.TorrentWebPages.Tests/ReadOnlySpanExtensionsTests.cs b/src/Tests/TransmissionManager.TorrentWebPages.Tests/ReadOnlySpanExtensionsTests.cs index e78880d..d362634 100644 --- a/src/Tests/TransmissionManager.TorrentWebPages.Tests/ReadOnlySpanExtensionsTests.cs +++ b/src/Tests/TransmissionManager.TorrentWebPages.Tests/ReadOnlySpanExtensionsTests.cs @@ -38,7 +38,7 @@ public void IndexOfStartOf_WhenGivenEmptySpanAndEmptyValue_ReturnsIndexOfValue() Assert.That(""u8.IndexOfStartOf(""u8), Is.EqualTo(0)); [Test] - public void IndexOfStartOf_WhenGivenNormalSpanAndNonExistingValue_ReturnsMinusOne() => + public void IndexOfStartOf_WhenGivenNormalSpanAndNonExistentValue_ReturnsMinusOne() => Assert.That("testing"u8.IndexOfStartOf("asdfg"u8), Is.EqualTo(-1)); [Test] diff --git a/src/Tests/TransmissionManager.TorrentWebPages.Tests/TorrentWebPageClientTests.cs b/src/Tests/TransmissionManager.TorrentWebPages.Tests/TorrentWebPageClientTests.cs index cabd60e..1277b2b 100644 --- a/src/Tests/TransmissionManager.TorrentWebPages.Tests/TorrentWebPageClientTests.cs +++ b/src/Tests/TransmissionManager.TorrentWebPages.Tests/TorrentWebPageClientTests.cs @@ -84,13 +84,13 @@ public async Task FindMagnetUriAsync_WhenGivenWebPageWithoutMagnet_FindsMagnetUr [Test] public void FindMagnetUriAsync_WhenGivenNonExistentWebPage_ThrowsHttpRequestException() { - var nonExistingAddress = new Uri("https://seemingly.valid.though.non.existent.address"); + var NonExistentAddress = new Uri("https://seemingly.valid.though.non.existent.address"); using var httpClient = new HttpClient(); var client = new TorrentWebPageClient(_options, httpClient); Assert.That( - async () => await client.FindMagnetUriAsync(nonExistingAddress).ConfigureAwait(false), + async () => await client.FindMagnetUriAsync(NonExistentAddress).ConfigureAwait(false), Throws.TypeOf()); } } diff --git a/src/Tests/TransmissionManager.Transmission.Tests/TransmissionClientTests.cs b/src/Tests/TransmissionManager.Transmission.Tests/TransmissionClientTests.cs index 436d459..b571652 100644 --- a/src/Tests/TransmissionManager.Transmission.Tests/TransmissionClientTests.cs +++ b/src/Tests/TransmissionManager.Transmission.Tests/TransmissionClientTests.cs @@ -123,7 +123,7 @@ public async Task GetTorrentsAsync_GetsAllTorrentsWithTwoFields_WhenTwoRequested } [Test] - public async Task GetTorrentsAsync_GetsAllTorrentsWithNoFields_WhenNonExistingRequestedFieldsProvided() + public async Task GetTorrentsAsync_GetsAllTorrentsWithNoFields_WhenNonExistentRequestedFieldsProvided() { const string expectedRequest = """{"method":"torrent-get","arguments":{"fields":[998,999]}}"""; @@ -159,7 +159,7 @@ public async Task GetTorrentsAsync_GetsAllTorrentsWithNoFields_WhenEmptyRequeste } [Test] - public async Task GetTorrentsAsync_GetsNoTorrents_WhenNonExistingHashstringProvided() + public async Task GetTorrentsAsync_GetsNoTorrents_WhenNonExistentHashstringProvided() { const string expectedRequest = """{"method":"torrent-get","arguments":{"fields":[],"ids":["0bda511316a069e86dd8ee8a3610475d2013a7fb"]}}""";