From eca6c4c1e98ebc2f772a5c3c50d4e8e4113393a5 Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Tue, 9 Jan 2024 23:47:16 -0500 Subject: [PATCH] Organize TwitchDownloaderCore.Tests --- .../{ => ExtensionTests}/M3U8ExtensionTests.cs | 2 +- .../{ => ExtensionTests}/ReadOnlySpanCountTests.cs | 2 +- .../ReadOnlySpanTryReplaceNonEscapedTests.cs | 2 +- .../ReadOnlySpanUnEscapedIndexOfAnyTests.cs | 2 +- .../{ => ExtensionTests}/ReadOnlySpanUnEscapedIndexOfTests.cs | 2 +- .../{ => ExtensionTests}/StringReplaceAnyTests.cs | 2 +- .../{ => ToolTests}/FilenameServiceTests.cs | 2 +- .../{ => ToolTests}/HighlightIconsTests.cs | 2 +- TwitchDownloaderCore.Tests/{ => ToolTests}/M3U8Tests.cs | 2 +- .../{ => ToolTests}/TimeSpanHFormatTests.cs | 2 +- TwitchDownloaderCore.Tests/{ => ToolTests}/UrlTimeCodeTests.cs | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) rename TwitchDownloaderCore.Tests/{ => ExtensionTests}/M3U8ExtensionTests.cs (99%) rename TwitchDownloaderCore.Tests/{ => ExtensionTests}/ReadOnlySpanCountTests.cs (95%) rename TwitchDownloaderCore.Tests/{ => ExtensionTests}/ReadOnlySpanTryReplaceNonEscapedTests.cs (98%) rename TwitchDownloaderCore.Tests/{ => ExtensionTests}/ReadOnlySpanUnEscapedIndexOfAnyTests.cs (98%) rename TwitchDownloaderCore.Tests/{ => ExtensionTests}/ReadOnlySpanUnEscapedIndexOfTests.cs (98%) rename TwitchDownloaderCore.Tests/{ => ExtensionTests}/StringReplaceAnyTests.cs (97%) rename TwitchDownloaderCore.Tests/{ => ToolTests}/FilenameServiceTests.cs (99%) rename TwitchDownloaderCore.Tests/{ => ToolTests}/HighlightIconsTests.cs (99%) rename TwitchDownloaderCore.Tests/{ => ToolTests}/M3U8Tests.cs (99%) rename TwitchDownloaderCore.Tests/{ => ToolTests}/TimeSpanHFormatTests.cs (99%) rename TwitchDownloaderCore.Tests/{ => ToolTests}/UrlTimeCodeTests.cs (95%) diff --git a/TwitchDownloaderCore.Tests/M3U8ExtensionTests.cs b/TwitchDownloaderCore.Tests/ExtensionTests/M3U8ExtensionTests.cs similarity index 99% rename from TwitchDownloaderCore.Tests/M3U8ExtensionTests.cs rename to TwitchDownloaderCore.Tests/ExtensionTests/M3U8ExtensionTests.cs index 6c73cb37..19f2226a 100644 --- a/TwitchDownloaderCore.Tests/M3U8ExtensionTests.cs +++ b/TwitchDownloaderCore.Tests/ExtensionTests/M3U8ExtensionTests.cs @@ -129,7 +129,7 @@ public static void CorrectlyFindsStreamOfQualityFromM3U8ResponseWithoutFramerate [InlineData("Source", "1080p60")] [InlineData("", "1080p60")] [InlineData(null, "1080p60")] - public static void ReturnsHighestQualityWhenDesiredQualityNotFoundForOldM3U8Response(string qualityString, string expectedPath) + public static void ReturnsHighestQualityWhenDesiredQualityNotFoundForOldM3U8Response(string? qualityString, string expectedPath) { var m3u8 = new M3U8(new M3U8.Metadata(), new[] { diff --git a/TwitchDownloaderCore.Tests/ReadOnlySpanCountTests.cs b/TwitchDownloaderCore.Tests/ExtensionTests/ReadOnlySpanCountTests.cs similarity index 95% rename from TwitchDownloaderCore.Tests/ReadOnlySpanCountTests.cs rename to TwitchDownloaderCore.Tests/ExtensionTests/ReadOnlySpanCountTests.cs index 3145dcc4..df3eb743 100644 --- a/TwitchDownloaderCore.Tests/ReadOnlySpanCountTests.cs +++ b/TwitchDownloaderCore.Tests/ExtensionTests/ReadOnlySpanCountTests.cs @@ -1,6 +1,6 @@ using TwitchDownloaderCore.Extensions; -namespace TwitchDownloaderCore.Tests +namespace TwitchDownloaderCore.Tests.ExtensionTests { public class ReadOnlySpanCountTests { diff --git a/TwitchDownloaderCore.Tests/ReadOnlySpanTryReplaceNonEscapedTests.cs b/TwitchDownloaderCore.Tests/ExtensionTests/ReadOnlySpanTryReplaceNonEscapedTests.cs similarity index 98% rename from TwitchDownloaderCore.Tests/ReadOnlySpanTryReplaceNonEscapedTests.cs rename to TwitchDownloaderCore.Tests/ExtensionTests/ReadOnlySpanTryReplaceNonEscapedTests.cs index 98977068..902639cd 100644 --- a/TwitchDownloaderCore.Tests/ReadOnlySpanTryReplaceNonEscapedTests.cs +++ b/TwitchDownloaderCore.Tests/ExtensionTests/ReadOnlySpanTryReplaceNonEscapedTests.cs @@ -1,6 +1,6 @@ using TwitchDownloaderCore.Extensions; -namespace TwitchDownloaderCore.Tests +namespace TwitchDownloaderCore.Tests.ExtensionTests { // ReSharper disable StringLiteralTypo public class ReadOnlySpanTryReplaceNonEscapedTests diff --git a/TwitchDownloaderCore.Tests/ReadOnlySpanUnEscapedIndexOfAnyTests.cs b/TwitchDownloaderCore.Tests/ExtensionTests/ReadOnlySpanUnEscapedIndexOfAnyTests.cs similarity index 98% rename from TwitchDownloaderCore.Tests/ReadOnlySpanUnEscapedIndexOfAnyTests.cs rename to TwitchDownloaderCore.Tests/ExtensionTests/ReadOnlySpanUnEscapedIndexOfAnyTests.cs index d5af065e..b16b365a 100644 --- a/TwitchDownloaderCore.Tests/ReadOnlySpanUnEscapedIndexOfAnyTests.cs +++ b/TwitchDownloaderCore.Tests/ExtensionTests/ReadOnlySpanUnEscapedIndexOfAnyTests.cs @@ -1,6 +1,6 @@ using TwitchDownloaderCore.Extensions; -namespace TwitchDownloaderCore.Tests +namespace TwitchDownloaderCore.Tests.ExtensionTests { public class ReadOnlySpanUnEscapedIndexOfAnyTests { diff --git a/TwitchDownloaderCore.Tests/ReadOnlySpanUnEscapedIndexOfTests.cs b/TwitchDownloaderCore.Tests/ExtensionTests/ReadOnlySpanUnEscapedIndexOfTests.cs similarity index 98% rename from TwitchDownloaderCore.Tests/ReadOnlySpanUnEscapedIndexOfTests.cs rename to TwitchDownloaderCore.Tests/ExtensionTests/ReadOnlySpanUnEscapedIndexOfTests.cs index d376991a..4d0b9f76 100644 --- a/TwitchDownloaderCore.Tests/ReadOnlySpanUnEscapedIndexOfTests.cs +++ b/TwitchDownloaderCore.Tests/ExtensionTests/ReadOnlySpanUnEscapedIndexOfTests.cs @@ -1,6 +1,6 @@ using TwitchDownloaderCore.Extensions; -namespace TwitchDownloaderCore.Tests +namespace TwitchDownloaderCore.Tests.ExtensionTests { public class ReadOnlySpanUnEscapedIndexOfTests { diff --git a/TwitchDownloaderCore.Tests/StringReplaceAnyTests.cs b/TwitchDownloaderCore.Tests/ExtensionTests/StringReplaceAnyTests.cs similarity index 97% rename from TwitchDownloaderCore.Tests/StringReplaceAnyTests.cs rename to TwitchDownloaderCore.Tests/ExtensionTests/StringReplaceAnyTests.cs index d510873c..2231247f 100644 --- a/TwitchDownloaderCore.Tests/StringReplaceAnyTests.cs +++ b/TwitchDownloaderCore.Tests/ExtensionTests/StringReplaceAnyTests.cs @@ -1,6 +1,6 @@ using TwitchDownloaderCore.Extensions; -namespace TwitchDownloaderCore.Tests +namespace TwitchDownloaderCore.Tests.ExtensionTests { // ReSharper disable StringLiteralTypo public class StringReplaceAnyTests diff --git a/TwitchDownloaderCore.Tests/FilenameServiceTests.cs b/TwitchDownloaderCore.Tests/ToolTests/FilenameServiceTests.cs similarity index 99% rename from TwitchDownloaderCore.Tests/FilenameServiceTests.cs rename to TwitchDownloaderCore.Tests/ToolTests/FilenameServiceTests.cs index f5863bd4..7642a72e 100644 --- a/TwitchDownloaderCore.Tests/FilenameServiceTests.cs +++ b/TwitchDownloaderCore.Tests/ToolTests/FilenameServiceTests.cs @@ -1,7 +1,7 @@ using TwitchDownloaderCore.Extensions; using TwitchDownloaderCore.Tools; -namespace TwitchDownloaderCore.Tests +namespace TwitchDownloaderCore.Tests.ToolTests { public class FilenameServiceTests { diff --git a/TwitchDownloaderCore.Tests/HighlightIconsTests.cs b/TwitchDownloaderCore.Tests/ToolTests/HighlightIconsTests.cs similarity index 99% rename from TwitchDownloaderCore.Tests/HighlightIconsTests.cs rename to TwitchDownloaderCore.Tests/ToolTests/HighlightIconsTests.cs index 8aeb9661..c47ccd45 100644 --- a/TwitchDownloaderCore.Tests/HighlightIconsTests.cs +++ b/TwitchDownloaderCore.Tests/ToolTests/HighlightIconsTests.cs @@ -2,7 +2,7 @@ using TwitchDownloaderCore.Tools; using TwitchDownloaderCore.TwitchObjects; -namespace TwitchDownloaderCore.Tests +namespace TwitchDownloaderCore.Tests.ToolTests { // ReSharper disable StringLiteralTypo public class HighlightIconsTests diff --git a/TwitchDownloaderCore.Tests/M3U8Tests.cs b/TwitchDownloaderCore.Tests/ToolTests/M3U8Tests.cs similarity index 99% rename from TwitchDownloaderCore.Tests/M3U8Tests.cs rename to TwitchDownloaderCore.Tests/ToolTests/M3U8Tests.cs index 9d1776f5..c0819f15 100644 --- a/TwitchDownloaderCore.Tests/M3U8Tests.cs +++ b/TwitchDownloaderCore.Tests/ToolTests/M3U8Tests.cs @@ -2,7 +2,7 @@ using System.Text; using TwitchDownloaderCore.Tools; -namespace TwitchDownloaderCore.Tests +namespace TwitchDownloaderCore.Tests.ToolTests { // ReSharper disable StringLiteralTypo public class M3U8Tests diff --git a/TwitchDownloaderCore.Tests/TimeSpanHFormatTests.cs b/TwitchDownloaderCore.Tests/ToolTests/TimeSpanHFormatTests.cs similarity index 99% rename from TwitchDownloaderCore.Tests/TimeSpanHFormatTests.cs rename to TwitchDownloaderCore.Tests/ToolTests/TimeSpanHFormatTests.cs index 8a9d4252..68213a1e 100644 --- a/TwitchDownloaderCore.Tests/TimeSpanHFormatTests.cs +++ b/TwitchDownloaderCore.Tests/ToolTests/TimeSpanHFormatTests.cs @@ -1,6 +1,6 @@ using TwitchDownloaderCore.Tools; -namespace TwitchDownloaderCore.Tests +namespace TwitchDownloaderCore.Tests.ToolTests { // Important notes: When a TimeSpan less than 24 hours in length is passed to TimeSpanHFormat.Format, TimeSpan.ToString is used instead. // ReSharper disable StringLiteralTypo diff --git a/TwitchDownloaderCore.Tests/UrlTimeCodeTests.cs b/TwitchDownloaderCore.Tests/ToolTests/UrlTimeCodeTests.cs similarity index 95% rename from TwitchDownloaderCore.Tests/UrlTimeCodeTests.cs rename to TwitchDownloaderCore.Tests/ToolTests/UrlTimeCodeTests.cs index 7eb98521..39664d1e 100644 --- a/TwitchDownloaderCore.Tests/UrlTimeCodeTests.cs +++ b/TwitchDownloaderCore.Tests/ToolTests/UrlTimeCodeTests.cs @@ -1,6 +1,6 @@ using TwitchDownloaderCore.Tools; -namespace TwitchDownloaderCore.Tests +namespace TwitchDownloaderCore.Tests.ToolTests { public class UrlTimeCodeTests {