The Free Software Media System - Server Backend & API
Move StreamBuilderTests to correct project (#7461)
Bond-009bb7068cb6354
diff --git a/MediaBrowser.Model/Properties/AssemblyInfo.cs b/MediaBrowser.Model/Properties/AssemblyInfo.csindex 6bf1eb0c03..e50baf604e 100644--- a/MediaBrowser.Model/Properties/AssemblyInfo.cs+++ b/MediaBrowser.Model/Properties/AssemblyInfo.cs@@ -16,7 +16,6 @@ using System.Runtime.InteropServices;[assembly: AssemblyCulture("")][assembly: NeutralResourcesLanguage("en")][assembly: InternalsVisibleTo("Jellyfin.Model.Tests")]-[assembly: InternalsVisibleTo("Jellyfin.Dlna.Tests")]// Setting ComVisible to false makes the types in this assembly not visible// to COM components. If you need to access a type in this assembly fromdiff --git a/tests/Jellyfin.Dlna.Tests/Jellyfin.Dlna.Tests.csproj b/tests/Jellyfin.Dlna.Tests/Jellyfin.Dlna.Tests.csprojindex 8cead4bf25..4918e2e828 100644--- a/tests/Jellyfin.Dlna.Tests/Jellyfin.Dlna.Tests.csproj+++ b/tests/Jellyfin.Dlna.Tests/Jellyfin.Dlna.Tests.csproj@@ -14,12 +14,6 @@<PackageReference Include="coverlet.collector" Version="3.1.2" /></ItemGroup>- <ItemGroup>- <None Include="Test Data\**\*.*">- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>- </None>- </ItemGroup>-<!-- Code Analyzers --><ItemGroup Condition=" '$(Configuration)' == 'Debug' "><PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="3.3.3">diff --git a/tests/Jellyfin.Dlna.Tests/StreamBuilderTests.cs b/tests/Jellyfin.Model.Tests/Dlna/StreamBuilderTests.cssimilarity index 99%rename from tests/Jellyfin.Dlna.Tests/StreamBuilderTests.csrename to tests/Jellyfin.Model.Tests/Dlna/StreamBuilderTests.csindex c645ca9a63..4748f34977 100644--- a/tests/Jellyfin.Dlna.Tests/StreamBuilderTests.cs+++ b/tests/Jellyfin.Model.Tests/Dlna/StreamBuilderTests.cs@@ -14,7 +14,7 @@ using Microsoft.Extensions.Logging.Abstractions;using Moq;using Xunit;-namespace Jellyfin.MediaBrowser.Model.Tests+namespace Jellyfin.Model.Tests{public class StreamBuilderTests{@@ -453,8 +453,8 @@ namespace Jellyfin.MediaBrowser.Model.Testsvar queryString = href.ElementAtOrDefault(1);var query = string.IsNullOrEmpty(queryString) ? System.Web.HttpUtility.ParseQueryString(queryString ?? string.Empty) : new NameValueCollection();- var filename = System.IO.Path.GetFileNameWithoutExtension(path);- var extension = System.IO.Path.GetExtension(path);+ var filename = Path.GetFileNameWithoutExtension(path);+ var extension = Path.GetExtension(path);if (extension.Length > 0){extension = extension.Substring(1);diff --git a/tests/Jellyfin.Model.Tests/Jellyfin.Model.Tests.csproj b/tests/Jellyfin.Model.Tests/Jellyfin.Model.Tests.csprojindex 9da80c3125..d2304d0d00 100644--- a/tests/Jellyfin.Model.Tests/Jellyfin.Model.Tests.csproj+++ b/tests/Jellyfin.Model.Tests/Jellyfin.Model.Tests.csproj@@ -8,12 +8,19 @@<ItemGroup><PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />+ <PackageReference Include="Moq" Version="4.17.2" /><PackageReference Include="xunit" Version="2.4.1" /><PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" /><PackageReference Include="coverlet.collector" Version="3.1.2" /><PackageReference Include="FsCheck.Xunit" Version="2.16.4" /></ItemGroup>+ <ItemGroup>+ <None Include="Test Data\**\*.*">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </None>+ </ItemGroup>+<!-- Code Analyzers --><ItemGroup Condition=" '$(Configuration)' == 'Debug' "><PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="3.3.3">diff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-AndroidPixel.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-AndroidPixel.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-AndroidPixel.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-AndroidPixel.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-Chrome-NoHLS.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Chrome-NoHLS.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-Chrome-NoHLS.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Chrome-NoHLS.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-Chrome.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Chrome.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-Chrome.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Chrome.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-DirectMedia.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-DirectMedia.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-DirectMedia.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-DirectMedia.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-Firefox.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Firefox.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-Firefox.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Firefox.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-JellyfinMediaPlayer.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-JellyfinMediaPlayer.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-JellyfinMediaPlayer.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-JellyfinMediaPlayer.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-LowBandwidth.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-LowBandwidth.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-LowBandwidth.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-LowBandwidth.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-Null.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Null.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-Null.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Null.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-RokuSSPlus.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-RokuSSPlus.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-RokuSSPlus.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-RokuSSPlus.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-RokuSSPlusNext.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-RokuSSPlusNext.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-RokuSSPlusNext.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-RokuSSPlusNext.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-SafariNext.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-SafariNext.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-SafariNext.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-SafariNext.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-TranscodeMedia.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-TranscodeMedia.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-TranscodeMedia.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-TranscodeMedia.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-Yatse.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Yatse.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-Yatse.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Yatse.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-Yatse2.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Yatse2.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/DeviceProfile-Yatse2.jsonrename to tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Yatse2.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mkv-av1-aac-srt-2600k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mkv-av1-aac-srt-2600k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mkv-av1-aac-srt-2600k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mkv-av1-aac-srt-2600k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mkv-av1-vorbis-srt-2600k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mkv-av1-vorbis-srt-2600k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mkv-av1-vorbis-srt-2600k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mkv-av1-vorbis-srt-2600k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mkv-vp9-aac-srt-2600k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mkv-vp9-aac-srt-2600k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mkv-vp9-aac-srt-2600k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mkv-vp9-aac-srt-2600k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mkv-vp9-ac3-srt-2600k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mkv-vp9-ac3-srt-2600k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mkv-vp9-ac3-srt-2600k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mkv-vp9-ac3-srt-2600k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mkv-vp9-vorbis-srt-2600k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mkv-vp9-vorbis-srt-2600k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mkv-vp9-vorbis-srt-2600k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mkv-vp9-vorbis-srt-2600k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mkv-vp9-vorbis-vtt-2600k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mkv-vp9-vorbis-vtt-2600k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mkv-vp9-vorbis-vtt-2600k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mkv-vp9-vorbis-vtt-2600k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-h264-aac-srt-2600k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-h264-aac-srt-2600k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-h264-aac-srt-2600k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-h264-aac-srt-2600k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-h264-aac-vtt-2600k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-h264-aac-vtt-2600k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-h264-aac-vtt-2600k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-h264-aac-vtt-2600k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-aac-srt-2600k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-aac-srt-2600k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-aac-srt-2600k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-aac-srt-2600k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-aacDef-srt-2600k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-aacDef-srt-2600k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-aacDef-srt-2600k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-aacDef-srt-2600k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-aacExt-srt-2600k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-aacExt-srt-2600k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-aacExt-srt-2600k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-aacExt-srt-2600k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-srt-2600k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-srt-2600k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-srt-2600k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-h264-ac3-srt-2600k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-hevc-aac-srt-15200k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-hevc-aac-srt-15200k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-hevc-aac-srt-15200k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-hevc-aac-srt-15200k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-hevc-ac3-aac-srt-15200k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-hevc-ac3-aac-srt-15200k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-hevc-ac3-aac-srt-15200k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-hevc-ac3-aac-srt-15200k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-hevc-ac3-aacExt-srt-15200k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-hevc-ac3-aacExt-srt-15200k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-hevc-ac3-aacExt-srt-15200k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-hevc-ac3-aacExt-srt-15200k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-hevc-ac3-srt-15200k.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-hevc-ac3-srt-15200k.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-mp4-hevc-ac3-srt-15200k.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-mp4-hevc-ac3-srt-15200k.jsondiff --git a/tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-raw.json b/tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-raw.jsonsimilarity index 100%rename from tests/Jellyfin.Dlna.Tests/Test Data/MediaSourceInfo-raw.jsonrename to tests/Jellyfin.Model.Tests/Test Data/MediaSourceInfo-raw.json