From 78fd1574502d94ce330bb83462918a6ce68bb66a Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 20:23:27 +0000 Subject: [PATCH 01/25] BDInfo.Test --- MediaBrowser.sln | 22 ++++++++++++++++++++++ tests/BDInfo.Test/BDInfo.Test.csproj | 19 +++++++++++++++++++ tests/BDInfo.Test/UnitTest1.cs | 14 ++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 tests/BDInfo.Test/BDInfo.Test.csproj create mode 100644 tests/BDInfo.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index b7c8ba527..6dd0fb465 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -64,6 +64,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emby.XmlTv", "Emby.XmlTv\Em EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IsoMounter", "Emby.IsoMounting\IsoMounter\IsoMounter.csproj", "{9BA471D2-6DB9-4DBF-B3A0-9FB3171F94A6}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BDInfo.Test", "tests\BDInfo.Test\BDInfo.Test.csproj", "{70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -525,6 +527,26 @@ Global {9BA471D2-6DB9-4DBF-B3A0-9FB3171F94A6}.Release|x64.Build.0 = Release|Any CPU {9BA471D2-6DB9-4DBF-B3A0-9FB3171F94A6}.Release|x86.ActiveCfg = Release|Any CPU {9BA471D2-6DB9-4DBF-B3A0-9FB3171F94A6}.Release|x86.Build.0 = Release|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Debug|Win32.ActiveCfg = Debug|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Debug|Win32.Build.0 = Debug|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Debug|x64.ActiveCfg = Debug|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Debug|x64.Build.0 = Debug|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Debug|x86.ActiveCfg = Debug|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Debug|x86.Build.0 = Debug|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|Any CPU.Build.0 = Release|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|Win32.ActiveCfg = Release|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|Win32.Build.0 = Release|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|x64.ActiveCfg = Release|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|x64.Build.0 = Release|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|x86.ActiveCfg = Release|Any CPU + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/tests/BDInfo.Test/BDInfo.Test.csproj b/tests/BDInfo.Test/BDInfo.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/BDInfo.Test/BDInfo.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/BDInfo.Test/UnitTest1.cs b/tests/BDInfo.Test/UnitTest1.cs new file mode 100644 index 000000000..8295a0cf2 --- /dev/null +++ b/tests/BDInfo.Test/UnitTest1.cs @@ -0,0 +1,14 @@ +using NUnit.Framework; + +namespace BDInfo.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 9964d2ff93661c420287630bd4b6e78e469641fc Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 20:25:46 +0000 Subject: [PATCH 02/25] DvdLib.Test --- MediaBrowser.sln | 22 ++++++++++++++++++++++ tests/DvdLib.Test/DvdLib.Test.csproj | 19 +++++++++++++++++++ tests/DvdLib.Test/UnitTest1.cs | 15 +++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 tests/DvdLib.Test/DvdLib.Test.csproj create mode 100644 tests/DvdLib.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 6dd0fb465..975f4f5f7 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -66,6 +66,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IsoMounter", "Emby.IsoMount EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BDInfo.Test", "tests\BDInfo.Test\BDInfo.Test.csproj", "{70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DvdLib.Test", "tests\DvdLib.Test\DvdLib.Test.csproj", "{393482D5-4902-4D78-A085-D3D1DAAB35C5}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -547,6 +549,26 @@ Global {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|x64.Build.0 = Release|Any CPU {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|x86.ActiveCfg = Release|Any CPU {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F}.Release|x86.Build.0 = Release|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Debug|Win32.ActiveCfg = Debug|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Debug|Win32.Build.0 = Debug|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Debug|x64.ActiveCfg = Debug|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Debug|x64.Build.0 = Debug|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Debug|x86.ActiveCfg = Debug|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Debug|x86.Build.0 = Debug|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|Any CPU.Build.0 = Release|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|Win32.ActiveCfg = Release|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|Win32.Build.0 = Release|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|x64.ActiveCfg = Release|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|x64.Build.0 = Release|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|x86.ActiveCfg = Release|Any CPU + {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/tests/DvdLib.Test/DvdLib.Test.csproj b/tests/DvdLib.Test/DvdLib.Test.csproj new file mode 100644 index 000000000..85357d199 --- /dev/null +++ b/tests/DvdLib.Test/DvdLib.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/DvdLib.Test/UnitTest1.cs b/tests/DvdLib.Test/UnitTest1.cs new file mode 100644 index 000000000..7328ccaf3 --- /dev/null +++ b/tests/DvdLib.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace DvdLib.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 9c74e4f10e2560f7a8001ff4811b1c6c3387187b Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 20:29:39 +0000 Subject: [PATCH 03/25] Jellyfin.Dlna tests --- MediaBrowser.sln | 27 +++++++++++++++++++ .../Jellyfin.Dlna.Test.csproj | 19 +++++++++++++ tests/Jellyfin.Dlna.Test/UnitTest1.cs | 15 +++++++++++ 3 files changed, 61 insertions(+) create mode 100644 tests/Jellyfin.Dlna.Test/Jellyfin.Dlna.Test.csproj create mode 100644 tests/Jellyfin.Dlna.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 975f4f5f7..7dbfe5694 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -68,6 +68,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BDInfo.Test", "tests\BDInfo EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DvdLib.Test", "tests\DvdLib.Test\DvdLib.Test.csproj", "{393482D5-4902-4D78-A085-D3D1DAAB35C5}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Dlna.Test", "tests\Jellyfin.Dlna.Test\Jellyfin.Dlna.Test.csproj", "{D9DDBA32-F017-4B04-A9A8-684B09792D6B}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{2AC30C72-9249-4621-967C-929ECA51D9F2}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -569,6 +573,26 @@ Global {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|x64.Build.0 = Release|Any CPU {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|x86.ActiveCfg = Release|Any CPU {393482D5-4902-4D78-A085-D3D1DAAB35C5}.Release|x86.Build.0 = Release|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Debug|Win32.ActiveCfg = Debug|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Debug|Win32.Build.0 = Debug|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Debug|x64.ActiveCfg = Debug|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Debug|x64.Build.0 = Debug|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Debug|x86.ActiveCfg = Debug|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Debug|x86.Build.0 = Debug|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|Any CPU.Build.0 = Release|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|Win32.ActiveCfg = Release|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|Win32.Build.0 = Release|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|x64.ActiveCfg = Release|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|x64.Build.0 = Release|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|x86.ActiveCfg = Release|Any CPU + {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -576,4 +600,7 @@ Global GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {3448830C-EBDC-426C-85CD-7BBB9651A7FE} EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {D9DDBA32-F017-4B04-A9A8-684B09792D6B} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Dlna.Test/Jellyfin.Dlna.Test.csproj b/tests/Jellyfin.Dlna.Test/Jellyfin.Dlna.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.Dlna.Test/Jellyfin.Dlna.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Dlna.Test/UnitTest1.cs b/tests/Jellyfin.Dlna.Test/UnitTest1.cs new file mode 100644 index 000000000..13ebfc68f --- /dev/null +++ b/tests/Jellyfin.Dlna.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Dlna.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From b31725d7f284bb81dc0b8e7bb7bf5a74eb15c179 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 20:36:05 +0000 Subject: [PATCH 04/25] Jellyfin.Drawing.Test project --- MediaBrowser.sln | 25 +++++++++++++++++++ .../Jellyfin.Drawing.Test.csproj | 19 ++++++++++++++ tests/Jellyfin.Drawing.Test/UnitTest1.cs | 15 +++++++++++ 3 files changed, 59 insertions(+) create mode 100644 tests/Jellyfin.Drawing.Test/Jellyfin.Drawing.Test.csproj create mode 100644 tests/Jellyfin.Drawing.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 7dbfe5694..fbee7d4cf 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -72,6 +72,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Dlna.Test", "tests EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{2AC30C72-9249-4621-967C-929ECA51D9F2}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Drawing.Test", "tests\Jellyfin.Drawing.Test\Jellyfin.Drawing.Test.csproj", "{DB1A8734-E61E-4DC8-9664-681E691DDD2C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -593,6 +595,26 @@ Global {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|x64.Build.0 = Release|Any CPU {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|x86.ActiveCfg = Release|Any CPU {D9DDBA32-F017-4B04-A9A8-684B09792D6B}.Release|x86.Build.0 = Release|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Debug|Win32.ActiveCfg = Debug|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Debug|Win32.Build.0 = Debug|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Debug|x64.ActiveCfg = Debug|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Debug|x64.Build.0 = Debug|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Debug|x86.ActiveCfg = Debug|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Debug|x86.Build.0 = Debug|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|Any CPU.Build.0 = Release|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|Win32.ActiveCfg = Release|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|Win32.Build.0 = Release|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|x64.ActiveCfg = Release|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|x64.Build.0 = Release|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|x86.ActiveCfg = Release|Any CPU + {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -602,5 +624,8 @@ Global EndGlobalSection GlobalSection(NestedProjects) = preSolution {D9DDBA32-F017-4B04-A9A8-684B09792D6B} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {393482D5-4902-4D78-A085-D3D1DAAB35C5} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {DB1A8734-E61E-4DC8-9664-681E691DDD2C} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Drawing.Test/Jellyfin.Drawing.Test.csproj b/tests/Jellyfin.Drawing.Test/Jellyfin.Drawing.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.Drawing.Test/Jellyfin.Drawing.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Drawing.Test/UnitTest1.cs b/tests/Jellyfin.Drawing.Test/UnitTest1.cs new file mode 100644 index 000000000..49e750972 --- /dev/null +++ b/tests/Jellyfin.Drawing.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Drawing.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From d2104aed2cd212d8743767bb8f0738d6cbcbf891 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 20:44:24 +0000 Subject: [PATCH 05/25] Jellyfin.Drawing.ImageMagick.Test project --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.Drawing.ImageMagick.Test.csproj | 19 +++++++++++++++ .../UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.Drawing.ImageMagick.Test/Jellyfin.Drawing.ImageMagick.Test.csproj create mode 100644 tests/Jellyfin.Drawing.ImageMagick.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index fbee7d4cf..0c7ab9110 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -74,6 +74,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{2AC30C72 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Drawing.Test", "tests\Jellyfin.Drawing.Test\Jellyfin.Drawing.Test.csproj", "{DB1A8734-E61E-4DC8-9664-681E691DDD2C}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Drawing.ImageMagick.Test", "tests\Jellyfin.Drawing.ImageMagick.Test\Jellyfin.Drawing.ImageMagick.Test.csproj", "{D290F8B9-5C8C-4B11-82A7-E1F1615771B6}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -615,6 +617,26 @@ Global {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|x64.Build.0 = Release|Any CPU {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|x86.ActiveCfg = Release|Any CPU {DB1A8734-E61E-4DC8-9664-681E691DDD2C}.Release|x86.Build.0 = Release|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Debug|Win32.ActiveCfg = Debug|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Debug|Win32.Build.0 = Debug|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Debug|x64.ActiveCfg = Debug|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Debug|x64.Build.0 = Debug|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Debug|x86.ActiveCfg = Debug|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Debug|x86.Build.0 = Debug|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|Any CPU.Build.0 = Release|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|Win32.ActiveCfg = Release|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|Win32.Build.0 = Release|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|x64.ActiveCfg = Release|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|x64.Build.0 = Release|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|x86.ActiveCfg = Release|Any CPU + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -627,5 +649,6 @@ Global {70DF5E87-3CCE-4EB4-96C0-7570FEBE785F} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {393482D5-4902-4D78-A085-D3D1DAAB35C5} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {DB1A8734-E61E-4DC8-9664-681E691DDD2C} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {D290F8B9-5C8C-4B11-82A7-E1F1615771B6} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Drawing.ImageMagick.Test/Jellyfin.Drawing.ImageMagick.Test.csproj b/tests/Jellyfin.Drawing.ImageMagick.Test/Jellyfin.Drawing.ImageMagick.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.Drawing.ImageMagick.Test/Jellyfin.Drawing.ImageMagick.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Drawing.ImageMagick.Test/UnitTest1.cs b/tests/Jellyfin.Drawing.ImageMagick.Test/UnitTest1.cs new file mode 100644 index 000000000..d38c4a681 --- /dev/null +++ b/tests/Jellyfin.Drawing.ImageMagick.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Drawing.ImageMagick.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 2934c5908084ea686d4937d2d8cd34f8602fd930 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 20:49:25 +0000 Subject: [PATCH 06/25] Jellyfin.Drawing.Skia.Test project --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.Drawing.Skia.Test.csproj | 19 +++++++++++++++ tests/Jellyfin.Drawing.Skia.Test/UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.Drawing.Skia.Test/Jellyfin.Drawing.Skia.Test.csproj create mode 100644 tests/Jellyfin.Drawing.Skia.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 0c7ab9110..6d9009803 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -76,6 +76,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Drawing.Test", "te EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Drawing.ImageMagick.Test", "tests\Jellyfin.Drawing.ImageMagick.Test\Jellyfin.Drawing.ImageMagick.Test.csproj", "{D290F8B9-5C8C-4B11-82A7-E1F1615771B6}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Drawing.Skia.Test", "tests\Jellyfin.Drawing.Skia.Test\Jellyfin.Drawing.Skia.Test.csproj", "{941A0327-CBE9-4804-BD45-49C0D4889E2D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -637,6 +639,26 @@ Global {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|x64.Build.0 = Release|Any CPU {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|x86.ActiveCfg = Release|Any CPU {D290F8B9-5C8C-4B11-82A7-E1F1615771B6}.Release|x86.Build.0 = Release|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Debug|Win32.ActiveCfg = Debug|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Debug|Win32.Build.0 = Debug|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Debug|x64.ActiveCfg = Debug|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Debug|x64.Build.0 = Debug|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Debug|x86.ActiveCfg = Debug|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Debug|x86.Build.0 = Debug|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|Any CPU.Build.0 = Release|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|Win32.ActiveCfg = Release|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|Win32.Build.0 = Release|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|x64.ActiveCfg = Release|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|x64.Build.0 = Release|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|x86.ActiveCfg = Release|Any CPU + {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -650,5 +672,6 @@ Global {393482D5-4902-4D78-A085-D3D1DAAB35C5} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {DB1A8734-E61E-4DC8-9664-681E691DDD2C} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {D290F8B9-5C8C-4B11-82A7-E1F1615771B6} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {941A0327-CBE9-4804-BD45-49C0D4889E2D} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Drawing.Skia.Test/Jellyfin.Drawing.Skia.Test.csproj b/tests/Jellyfin.Drawing.Skia.Test/Jellyfin.Drawing.Skia.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.Drawing.Skia.Test/Jellyfin.Drawing.Skia.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Drawing.Skia.Test/UnitTest1.cs b/tests/Jellyfin.Drawing.Skia.Test/UnitTest1.cs new file mode 100644 index 000000000..1d9f63fb7 --- /dev/null +++ b/tests/Jellyfin.Drawing.Skia.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Drawing.Skia.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From be36c494f6f94bbef993041480acdb454ee6401b Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 20:52:01 +0000 Subject: [PATCH 07/25] Jellyfin.Naming.Test project --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.Naming.Test.csproj | 19 +++++++++++++++ tests/Jellyfin.Naming.Test/UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.Naming.Test/Jellyfin.Naming.Test.csproj create mode 100644 tests/Jellyfin.Naming.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 6d9009803..bf48e8951 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -78,6 +78,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Drawing.ImageMagic EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Drawing.Skia.Test", "tests\Jellyfin.Drawing.Skia.Test\Jellyfin.Drawing.Skia.Test.csproj", "{941A0327-CBE9-4804-BD45-49C0D4889E2D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Naming.Test", "tests\Jellyfin.Naming.Test\Jellyfin.Naming.Test.csproj", "{B1577537-4675-40CA-B6F4-699E544E5238}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -659,6 +661,26 @@ Global {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|x64.Build.0 = Release|Any CPU {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|x86.ActiveCfg = Release|Any CPU {941A0327-CBE9-4804-BD45-49C0D4889E2D}.Release|x86.Build.0 = Release|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Debug|Win32.ActiveCfg = Debug|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Debug|Win32.Build.0 = Debug|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Debug|x64.ActiveCfg = Debug|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Debug|x64.Build.0 = Debug|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Debug|x86.ActiveCfg = Debug|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Debug|x86.Build.0 = Debug|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Release|Any CPU.Build.0 = Release|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Release|Win32.ActiveCfg = Release|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Release|Win32.Build.0 = Release|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Release|x64.ActiveCfg = Release|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Release|x64.Build.0 = Release|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Release|x86.ActiveCfg = Release|Any CPU + {B1577537-4675-40CA-B6F4-699E544E5238}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -673,5 +695,6 @@ Global {DB1A8734-E61E-4DC8-9664-681E691DDD2C} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {D290F8B9-5C8C-4B11-82A7-E1F1615771B6} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {941A0327-CBE9-4804-BD45-49C0D4889E2D} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {B1577537-4675-40CA-B6F4-699E544E5238} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Naming.Test/Jellyfin.Naming.Test.csproj b/tests/Jellyfin.Naming.Test/Jellyfin.Naming.Test.csproj new file mode 100644 index 000000000..85357d199 --- /dev/null +++ b/tests/Jellyfin.Naming.Test/Jellyfin.Naming.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Naming.Test/UnitTest1.cs b/tests/Jellyfin.Naming.Test/UnitTest1.cs new file mode 100644 index 000000000..1f2233e95 --- /dev/null +++ b/tests/Jellyfin.Naming.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Naming.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 4b888fa59e1d4069d4ceae670f3945e7fc7ae2bd Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 20:56:27 +0000 Subject: [PATCH 08/25] Jellyfin.Notifications.Test project --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.Notifications.Test.csproj | 19 +++++++++++++++ .../Jellyfin.Notifications.Test/UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.Notifications.Test/Jellyfin.Notifications.Test.csproj create mode 100644 tests/Jellyfin.Notifications.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index bf48e8951..0c709ca6d 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -80,6 +80,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Drawing.Skia.Test" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Naming.Test", "tests\Jellyfin.Naming.Test\Jellyfin.Naming.Test.csproj", "{B1577537-4675-40CA-B6F4-699E544E5238}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Notifications.Test", "tests\Jellyfin.Notifications.Test\Jellyfin.Notifications.Test.csproj", "{588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -681,6 +683,26 @@ Global {B1577537-4675-40CA-B6F4-699E544E5238}.Release|x64.Build.0 = Release|Any CPU {B1577537-4675-40CA-B6F4-699E544E5238}.Release|x86.ActiveCfg = Release|Any CPU {B1577537-4675-40CA-B6F4-699E544E5238}.Release|x86.Build.0 = Release|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Debug|Win32.ActiveCfg = Debug|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Debug|Win32.Build.0 = Debug|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Debug|x64.ActiveCfg = Debug|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Debug|x64.Build.0 = Debug|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Debug|x86.ActiveCfg = Debug|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Debug|x86.Build.0 = Debug|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|Any CPU.Build.0 = Release|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|Win32.ActiveCfg = Release|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|Win32.Build.0 = Release|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|x64.ActiveCfg = Release|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|x64.Build.0 = Release|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|x86.ActiveCfg = Release|Any CPU + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -696,5 +718,6 @@ Global {D290F8B9-5C8C-4B11-82A7-E1F1615771B6} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {941A0327-CBE9-4804-BD45-49C0D4889E2D} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {B1577537-4675-40CA-B6F4-699E544E5238} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Notifications.Test/Jellyfin.Notifications.Test.csproj b/tests/Jellyfin.Notifications.Test/Jellyfin.Notifications.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.Notifications.Test/Jellyfin.Notifications.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Notifications.Test/UnitTest1.cs b/tests/Jellyfin.Notifications.Test/UnitTest1.cs new file mode 100644 index 000000000..80ecc4434 --- /dev/null +++ b/tests/Jellyfin.Notifications.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Notifications.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 96c28eadbe1d03f761e0acc022f6470a77f6e608 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 20:58:24 +0000 Subject: [PATCH 09/25] Jellyfin.Photos.Test project --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.Photos.Test.csproj | 19 +++++++++++++++ tests/Jellyfin.Photos.Test/UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.Photos.Test/Jellyfin.Photos.Test.csproj create mode 100644 tests/Jellyfin.Photos.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 0c709ca6d..cc55ffe1b 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -82,6 +82,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Naming.Test", "tes EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Notifications.Test", "tests\Jellyfin.Notifications.Test\Jellyfin.Notifications.Test.csproj", "{588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Photos.Test", "tests\Jellyfin.Photos.Test\Jellyfin.Photos.Test.csproj", "{DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -703,6 +705,26 @@ Global {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|x64.Build.0 = Release|Any CPU {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|x86.ActiveCfg = Release|Any CPU {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8}.Release|x86.Build.0 = Release|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Debug|Win32.ActiveCfg = Debug|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Debug|Win32.Build.0 = Debug|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Debug|x64.ActiveCfg = Debug|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Debug|x64.Build.0 = Debug|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Debug|x86.ActiveCfg = Debug|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Debug|x86.Build.0 = Debug|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|Any CPU.Build.0 = Release|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|Win32.ActiveCfg = Release|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|Win32.Build.0 = Release|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|x64.ActiveCfg = Release|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|x64.Build.0 = Release|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|x86.ActiveCfg = Release|Any CPU + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -719,5 +741,6 @@ Global {941A0327-CBE9-4804-BD45-49C0D4889E2D} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {B1577537-4675-40CA-B6F4-699E544E5238} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Photos.Test/Jellyfin.Photos.Test.csproj b/tests/Jellyfin.Photos.Test/Jellyfin.Photos.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.Photos.Test/Jellyfin.Photos.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Photos.Test/UnitTest1.cs b/tests/Jellyfin.Photos.Test/UnitTest1.cs new file mode 100644 index 000000000..56b52973e --- /dev/null +++ b/tests/Jellyfin.Photos.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Photos.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 4cfe5b018ecc5a1047e20fc284e7b2f839318fe5 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:00:19 +0000 Subject: [PATCH 10/25] Jellyfin.Server.Implementations.Test project --- MediaBrowser.sln | 23 +++++++++++++++++++ ...ellyfin.Server.Implementations.Test.csproj | 19 +++++++++++++++ .../UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.Server.Implementations.Test/Jellyfin.Server.Implementations.Test.csproj create mode 100644 tests/Jellyfin.Server.Implementations.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index cc55ffe1b..e0c193836 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -84,6 +84,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Notifications.Test EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Photos.Test", "tests\Jellyfin.Photos.Test\Jellyfin.Photos.Test.csproj", "{DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Server.Implementations.Test", "tests\Jellyfin.Server.Implementations.Test\Jellyfin.Server.Implementations.Test.csproj", "{479023FE-D41A-47C2-84D3-7AB89EA94DCB}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -725,6 +727,26 @@ Global {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|x64.Build.0 = Release|Any CPU {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|x86.ActiveCfg = Release|Any CPU {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA}.Release|x86.Build.0 = Release|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Debug|Win32.ActiveCfg = Debug|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Debug|Win32.Build.0 = Debug|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Debug|x64.ActiveCfg = Debug|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Debug|x64.Build.0 = Debug|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Debug|x86.ActiveCfg = Debug|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Debug|x86.Build.0 = Debug|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|Any CPU.Build.0 = Release|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|Win32.ActiveCfg = Release|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|Win32.Build.0 = Release|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|x64.ActiveCfg = Release|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|x64.Build.0 = Release|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|x86.ActiveCfg = Release|Any CPU + {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -742,5 +764,6 @@ Global {B1577537-4675-40CA-B6F4-699E544E5238} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {479023FE-D41A-47C2-84D3-7AB89EA94DCB} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Server.Implementations.Test/Jellyfin.Server.Implementations.Test.csproj b/tests/Jellyfin.Server.Implementations.Test/Jellyfin.Server.Implementations.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.Server.Implementations.Test/Jellyfin.Server.Implementations.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Server.Implementations.Test/UnitTest1.cs b/tests/Jellyfin.Server.Implementations.Test/UnitTest1.cs new file mode 100644 index 000000000..cce8b5e36 --- /dev/null +++ b/tests/Jellyfin.Server.Implementations.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Server.Implementations.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 53c4b03e1be1314c2290588571101ec31f80bb14 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:02:59 +0000 Subject: [PATCH 11/25] Jellyfin.XmlTv.Test project --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.XmlTv.Test.csproj | 19 +++++++++++++++ tests/Jellyfin.XmlTv.Test/UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj create mode 100644 tests/Jellyfin.XmlTv.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index e0c193836..82000b0be 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -86,6 +86,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Photos.Test", "tes EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Server.Implementations.Test", "tests\Jellyfin.Server.Implementations.Test\Jellyfin.Server.Implementations.Test.csproj", "{479023FE-D41A-47C2-84D3-7AB89EA94DCB}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.XmlTv.Test", "tests\Jellyfin.XmlTv.Test\Jellyfin.XmlTv.Test.csproj", "{3B256C5C-6B43-418F-8101-6418275DD8E3}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -747,6 +749,26 @@ Global {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|x64.Build.0 = Release|Any CPU {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|x86.ActiveCfg = Release|Any CPU {479023FE-D41A-47C2-84D3-7AB89EA94DCB}.Release|x86.Build.0 = Release|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Debug|Win32.ActiveCfg = Debug|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Debug|Win32.Build.0 = Debug|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Debug|x64.ActiveCfg = Debug|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Debug|x64.Build.0 = Debug|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Debug|x86.ActiveCfg = Debug|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Debug|x86.Build.0 = Debug|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|Any CPU.Build.0 = Release|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|Win32.ActiveCfg = Release|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|Win32.Build.0 = Release|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|x64.ActiveCfg = Release|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|x64.Build.0 = Release|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|x86.ActiveCfg = Release|Any CPU + {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -765,5 +787,6 @@ Global {588C62D7-47A4-434F-80D1-D2EA7CCEB4D8} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {479023FE-D41A-47C2-84D3-7AB89EA94DCB} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {3B256C5C-6B43-418F-8101-6418275DD8E3} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj b/tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.XmlTv.Test/UnitTest1.cs b/tests/Jellyfin.XmlTv.Test/UnitTest1.cs new file mode 100644 index 000000000..19e1b6348 --- /dev/null +++ b/tests/Jellyfin.XmlTv.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.XmlTv.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 84678ba7baa7db600a13b081ffd40623dc0d86b1 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:06:56 +0000 Subject: [PATCH 12/25] Jellyfin.Test project --- MediaBrowser.sln | 23 +++++++++++++++++++++++ tests/Jellyfin.Test/Jellyfin.Test.csproj | 19 +++++++++++++++++++ tests/Jellyfin.Test/UnitTest1.cs | 15 +++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.Test/Jellyfin.Test.csproj create mode 100644 tests/Jellyfin.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 82000b0be..3db73548a 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -88,6 +88,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Server.Implementat EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.XmlTv.Test", "tests\Jellyfin.XmlTv.Test\Jellyfin.XmlTv.Test.csproj", "{3B256C5C-6B43-418F-8101-6418275DD8E3}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Test", "tests\Jellyfin.Test\Jellyfin.Test.csproj", "{522B49EE-8F4D-4DF9-A8D8-F7C49D630184}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -769,6 +771,26 @@ Global {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|x64.Build.0 = Release|Any CPU {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|x86.ActiveCfg = Release|Any CPU {3B256C5C-6B43-418F-8101-6418275DD8E3}.Release|x86.Build.0 = Release|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Debug|Any CPU.Build.0 = Debug|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Debug|Win32.ActiveCfg = Debug|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Debug|Win32.Build.0 = Debug|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Debug|x64.ActiveCfg = Debug|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Debug|x64.Build.0 = Debug|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Debug|x86.ActiveCfg = Debug|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Debug|x86.Build.0 = Debug|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|Any CPU.ActiveCfg = Release|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|Any CPU.Build.0 = Release|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|Win32.ActiveCfg = Release|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|Win32.Build.0 = Release|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|x64.ActiveCfg = Release|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|x64.Build.0 = Release|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|x86.ActiveCfg = Release|Any CPU + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -788,5 +810,6 @@ Global {DB8B7AE5-262F-4114-B8C7-0CB900BE81FA} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {479023FE-D41A-47C2-84D3-7AB89EA94DCB} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {3B256C5C-6B43-418F-8101-6418275DD8E3} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {522B49EE-8F4D-4DF9-A8D8-F7C49D630184} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Test/Jellyfin.Test.csproj b/tests/Jellyfin.Test/Jellyfin.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.Test/Jellyfin.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Test/UnitTest1.cs b/tests/Jellyfin.Test/UnitTest1.cs new file mode 100644 index 000000000..0a5dd72b6 --- /dev/null +++ b/tests/Jellyfin.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From a0507c2e44800c8fe6c45ea02d8d363d00d77399 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:09:42 +0000 Subject: [PATCH 13/25] IsoMounter.Test project --- MediaBrowser.sln | 23 ++++++++++++++++++++ tests/IsoMounter.Test/IsoMounter.Test.csproj | 19 ++++++++++++++++ tests/IsoMounter.Test/UnitTest1.cs | 15 +++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/IsoMounter.Test/IsoMounter.Test.csproj create mode 100644 tests/IsoMounter.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 3db73548a..7cf331fc4 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -90,6 +90,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.XmlTv.Test", "test EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Test", "tests\Jellyfin.Test\Jellyfin.Test.csproj", "{522B49EE-8F4D-4DF9-A8D8-F7C49D630184}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IsoMounter.Test", "tests\IsoMounter.Test\IsoMounter.Test.csproj", "{94668F26-EF57-4308-84E7-F3AEFF6BEEEF}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -791,6 +793,26 @@ Global {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|x64.Build.0 = Release|Any CPU {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|x86.ActiveCfg = Release|Any CPU {522B49EE-8F4D-4DF9-A8D8-F7C49D630184}.Release|x86.Build.0 = Release|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Debug|Win32.ActiveCfg = Debug|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Debug|Win32.Build.0 = Debug|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Debug|x64.ActiveCfg = Debug|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Debug|x64.Build.0 = Debug|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Debug|x86.ActiveCfg = Debug|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Debug|x86.Build.0 = Debug|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|Any CPU.Build.0 = Release|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|Win32.ActiveCfg = Release|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|Win32.Build.0 = Release|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|x64.ActiveCfg = Release|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|x64.Build.0 = Release|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|x86.ActiveCfg = Release|Any CPU + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -811,5 +833,6 @@ Global {479023FE-D41A-47C2-84D3-7AB89EA94DCB} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {3B256C5C-6B43-418F-8101-6418275DD8E3} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {522B49EE-8F4D-4DF9-A8D8-F7C49D630184} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {94668F26-EF57-4308-84E7-F3AEFF6BEEEF} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/IsoMounter.Test/IsoMounter.Test.csproj b/tests/IsoMounter.Test/IsoMounter.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/IsoMounter.Test/IsoMounter.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/IsoMounter.Test/UnitTest1.cs b/tests/IsoMounter.Test/UnitTest1.cs new file mode 100644 index 000000000..26e2807b1 --- /dev/null +++ b/tests/IsoMounter.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace IsoMounter.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From cd86fd767a19630701cbd9b92dd3d5638b55f7b8 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:15:04 +0000 Subject: [PATCH 14/25] Jellyfin.Api.Test --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.Api.Test.csproj | 19 +++++++++++++++ tests/Jellyfin.Api.Test/UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.Api.Test/Jellyfin.Api.Test.csproj create mode 100644 tests/Jellyfin.Api.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 7cf331fc4..e05c63f68 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -92,6 +92,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Test", "tests\Jell EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IsoMounter.Test", "tests\IsoMounter.Test\IsoMounter.Test.csproj", "{94668F26-EF57-4308-84E7-F3AEFF6BEEEF}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Api.Test", "tests\Jellyfin.Api.Test\Jellyfin.Api.Test.csproj", "{80313AD3-B247-414E-8421-332CF600192A}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -813,6 +815,26 @@ Global {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|x64.Build.0 = Release|Any CPU {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|x86.ActiveCfg = Release|Any CPU {94668F26-EF57-4308-84E7-F3AEFF6BEEEF}.Release|x86.Build.0 = Release|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Debug|Win32.ActiveCfg = Debug|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Debug|Win32.Build.0 = Debug|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Debug|x64.ActiveCfg = Debug|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Debug|x64.Build.0 = Debug|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Debug|x86.ActiveCfg = Debug|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Debug|x86.Build.0 = Debug|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Release|Any CPU.Build.0 = Release|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Release|Win32.ActiveCfg = Release|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Release|Win32.Build.0 = Release|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Release|x64.ActiveCfg = Release|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Release|x64.Build.0 = Release|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Release|x86.ActiveCfg = Release|Any CPU + {80313AD3-B247-414E-8421-332CF600192A}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -834,5 +856,6 @@ Global {3B256C5C-6B43-418F-8101-6418275DD8E3} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {522B49EE-8F4D-4DF9-A8D8-F7C49D630184} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {94668F26-EF57-4308-84E7-F3AEFF6BEEEF} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {80313AD3-B247-414E-8421-332CF600192A} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Api.Test/Jellyfin.Api.Test.csproj b/tests/Jellyfin.Api.Test/Jellyfin.Api.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.Api.Test/Jellyfin.Api.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Api.Test/UnitTest1.cs b/tests/Jellyfin.Api.Test/UnitTest1.cs new file mode 100644 index 000000000..781556758 --- /dev/null +++ b/tests/Jellyfin.Api.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Api.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 1f47fece5744455d951840eed70d445b943bddea Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:16:58 +0000 Subject: [PATCH 15/25] Jellyfin.Common.Test --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.Common.Test.csproj | 19 +++++++++++++++ tests/Jellyfin.Common.Test/UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.Common.Test/Jellyfin.Common.Test.csproj create mode 100644 tests/Jellyfin.Common.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index e05c63f68..e5fc690bb 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -94,6 +94,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IsoMounter.Test", "tests\Is EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Api.Test", "tests\Jellyfin.Api.Test\Jellyfin.Api.Test.csproj", "{80313AD3-B247-414E-8421-332CF600192A}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Common.Test", "tests\Jellyfin.Common.Test\Jellyfin.Common.Test.csproj", "{6C1A297B-DA4A-4291-8E09-1BE27A7896C7}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -835,6 +837,26 @@ Global {80313AD3-B247-414E-8421-332CF600192A}.Release|x64.Build.0 = Release|Any CPU {80313AD3-B247-414E-8421-332CF600192A}.Release|x86.ActiveCfg = Release|Any CPU {80313AD3-B247-414E-8421-332CF600192A}.Release|x86.Build.0 = Release|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Debug|Win32.ActiveCfg = Debug|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Debug|Win32.Build.0 = Debug|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Debug|x64.ActiveCfg = Debug|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Debug|x64.Build.0 = Debug|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Debug|x86.ActiveCfg = Debug|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Debug|x86.Build.0 = Debug|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|Any CPU.Build.0 = Release|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|Win32.ActiveCfg = Release|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|Win32.Build.0 = Release|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|x64.ActiveCfg = Release|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|x64.Build.0 = Release|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|x86.ActiveCfg = Release|Any CPU + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -857,5 +879,6 @@ Global {522B49EE-8F4D-4DF9-A8D8-F7C49D630184} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {94668F26-EF57-4308-84E7-F3AEFF6BEEEF} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {80313AD3-B247-414E-8421-332CF600192A} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {6C1A297B-DA4A-4291-8E09-1BE27A7896C7} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Common.Test/Jellyfin.Common.Test.csproj b/tests/Jellyfin.Common.Test/Jellyfin.Common.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.Common.Test/Jellyfin.Common.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Common.Test/UnitTest1.cs b/tests/Jellyfin.Common.Test/UnitTest1.cs new file mode 100644 index 000000000..8f15221a2 --- /dev/null +++ b/tests/Jellyfin.Common.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Common.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 95f4af153455ce04cd47e04bd31d89535f294941 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:33:40 +0000 Subject: [PATCH 16/25] Jellyfin.Controller.Test --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.Controller.Test.csproj | 19 +++++++++++++++ tests/Jellyfin.Controller.Test/UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.Controller.Test/Jellyfin.Controller.Test.csproj create mode 100644 tests/Jellyfin.Controller.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index e5fc690bb..a6e916170 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -96,6 +96,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Api.Test", "tests\ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Common.Test", "tests\Jellyfin.Common.Test\Jellyfin.Common.Test.csproj", "{6C1A297B-DA4A-4291-8E09-1BE27A7896C7}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Controller.Test", "tests\Jellyfin.Controller.Test\Jellyfin.Controller.Test.csproj", "{FFE772D4-4EA0-4CFF-959F-F03A665D21EE}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -857,6 +859,26 @@ Global {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|x64.Build.0 = Release|Any CPU {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|x86.ActiveCfg = Release|Any CPU {6C1A297B-DA4A-4291-8E09-1BE27A7896C7}.Release|x86.Build.0 = Release|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Debug|Win32.ActiveCfg = Debug|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Debug|Win32.Build.0 = Debug|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Debug|x64.ActiveCfg = Debug|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Debug|x64.Build.0 = Debug|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Debug|x86.ActiveCfg = Debug|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Debug|x86.Build.0 = Debug|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|Any CPU.Build.0 = Release|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|Win32.ActiveCfg = Release|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|Win32.Build.0 = Release|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|x64.ActiveCfg = Release|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|x64.Build.0 = Release|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|x86.ActiveCfg = Release|Any CPU + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -880,5 +902,6 @@ Global {94668F26-EF57-4308-84E7-F3AEFF6BEEEF} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {80313AD3-B247-414E-8421-332CF600192A} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {6C1A297B-DA4A-4291-8E09-1BE27A7896C7} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {FFE772D4-4EA0-4CFF-959F-F03A665D21EE} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Controller.Test/Jellyfin.Controller.Test.csproj b/tests/Jellyfin.Controller.Test/Jellyfin.Controller.Test.csproj new file mode 100644 index 000000000..85357d199 --- /dev/null +++ b/tests/Jellyfin.Controller.Test/Jellyfin.Controller.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Controller.Test/UnitTest1.cs b/tests/Jellyfin.Controller.Test/UnitTest1.cs new file mode 100644 index 000000000..4d8ad2169 --- /dev/null +++ b/tests/Jellyfin.Controller.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Controller.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 1e6272ce3a962ef7129b5ef0efa95e2eb2bd9416 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:35:34 +0000 Subject: [PATCH 17/25] Jellyfin.LocalMetadata.Test --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.LocalMetadata.Test.csproj | 19 +++++++++++++++ .../Jellyfin.LocalMetadata.Test/UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.LocalMetadata.Test/Jellyfin.LocalMetadata.Test.csproj create mode 100644 tests/Jellyfin.LocalMetadata.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index a6e916170..30b8391c6 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -98,6 +98,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Common.Test", "tes EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Controller.Test", "tests\Jellyfin.Controller.Test\Jellyfin.Controller.Test.csproj", "{FFE772D4-4EA0-4CFF-959F-F03A665D21EE}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.LocalMetadata.Test", "tests\Jellyfin.LocalMetadata.Test\Jellyfin.LocalMetadata.Test.csproj", "{B1E67507-8344-4759-97C0-5938BE4028C3}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -879,6 +881,26 @@ Global {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|x64.Build.0 = Release|Any CPU {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|x86.ActiveCfg = Release|Any CPU {FFE772D4-4EA0-4CFF-959F-F03A665D21EE}.Release|x86.Build.0 = Release|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Debug|Win32.ActiveCfg = Debug|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Debug|Win32.Build.0 = Debug|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Debug|x64.ActiveCfg = Debug|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Debug|x64.Build.0 = Debug|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Debug|x86.ActiveCfg = Debug|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Debug|x86.Build.0 = Debug|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|Any CPU.Build.0 = Release|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|Win32.ActiveCfg = Release|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|Win32.Build.0 = Release|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|x64.ActiveCfg = Release|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|x64.Build.0 = Release|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|x86.ActiveCfg = Release|Any CPU + {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -903,5 +925,6 @@ Global {80313AD3-B247-414E-8421-332CF600192A} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {6C1A297B-DA4A-4291-8E09-1BE27A7896C7} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {FFE772D4-4EA0-4CFF-959F-F03A665D21EE} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {B1E67507-8344-4759-97C0-5938BE4028C3} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.LocalMetadata.Test/Jellyfin.LocalMetadata.Test.csproj b/tests/Jellyfin.LocalMetadata.Test/Jellyfin.LocalMetadata.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.LocalMetadata.Test/Jellyfin.LocalMetadata.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.LocalMetadata.Test/UnitTest1.cs b/tests/Jellyfin.LocalMetadata.Test/UnitTest1.cs new file mode 100644 index 000000000..27e3d21c1 --- /dev/null +++ b/tests/Jellyfin.LocalMetadata.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.LocalMetadata.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 86270b43dffa648d1396aaafd01545ac55d4ef14 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:39:00 +0000 Subject: [PATCH 18/25] Jellyfin.Model.Test --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.Model.Test.csproj | 19 +++++++++++++++ tests/Jellyfin.Model.Test/UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.Model.Test/Jellyfin.Model.Test.csproj create mode 100644 tests/Jellyfin.Model.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 30b8391c6..4ed918b77 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -100,6 +100,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Controller.Test", EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.LocalMetadata.Test", "tests\Jellyfin.LocalMetadata.Test\Jellyfin.LocalMetadata.Test.csproj", "{B1E67507-8344-4759-97C0-5938BE4028C3}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Model.Test", "tests\Jellyfin.Model.Test\Jellyfin.Model.Test.csproj", "{55FDA93E-B630-4EBF-BE13-45ABF23FF66F}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -901,6 +903,26 @@ Global {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|x64.Build.0 = Release|Any CPU {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|x86.ActiveCfg = Release|Any CPU {B1E67507-8344-4759-97C0-5938BE4028C3}.Release|x86.Build.0 = Release|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Debug|Win32.ActiveCfg = Debug|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Debug|Win32.Build.0 = Debug|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Debug|x64.ActiveCfg = Debug|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Debug|x64.Build.0 = Debug|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Debug|x86.ActiveCfg = Debug|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Debug|x86.Build.0 = Debug|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|Any CPU.Build.0 = Release|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|Win32.ActiveCfg = Release|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|Win32.Build.0 = Release|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|x64.ActiveCfg = Release|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|x64.Build.0 = Release|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|x86.ActiveCfg = Release|Any CPU + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -926,5 +948,6 @@ Global {6C1A297B-DA4A-4291-8E09-1BE27A7896C7} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {FFE772D4-4EA0-4CFF-959F-F03A665D21EE} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {B1E67507-8344-4759-97C0-5938BE4028C3} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {55FDA93E-B630-4EBF-BE13-45ABF23FF66F} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Model.Test/Jellyfin.Model.Test.csproj b/tests/Jellyfin.Model.Test/Jellyfin.Model.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.Model.Test/Jellyfin.Model.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Model.Test/UnitTest1.cs b/tests/Jellyfin.Model.Test/UnitTest1.cs new file mode 100644 index 000000000..4e31c7af1 --- /dev/null +++ b/tests/Jellyfin.Model.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Model.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From a0dfa60d5c1121dc4a7a46498e3395a40c32b7a6 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:41:44 +0000 Subject: [PATCH 19/25] Jellyfin.Providers.Test --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.Providers.Test.csproj | 19 +++++++++++++++ tests/Jellyfin.Providers.Test/UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.Providers.Test/Jellyfin.Providers.Test.csproj create mode 100644 tests/Jellyfin.Providers.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 4ed918b77..a4043f47a 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -102,6 +102,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.LocalMetadata.Test EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Model.Test", "tests\Jellyfin.Model.Test\Jellyfin.Model.Test.csproj", "{55FDA93E-B630-4EBF-BE13-45ABF23FF66F}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Providers.Test", "tests\Jellyfin.Providers.Test\Jellyfin.Providers.Test.csproj", "{F15C15AA-FF3C-4B9D-B779-157573A026D6}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -923,6 +925,26 @@ Global {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|x64.Build.0 = Release|Any CPU {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|x86.ActiveCfg = Release|Any CPU {55FDA93E-B630-4EBF-BE13-45ABF23FF66F}.Release|x86.Build.0 = Release|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Debug|Win32.ActiveCfg = Debug|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Debug|Win32.Build.0 = Debug|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Debug|x64.ActiveCfg = Debug|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Debug|x64.Build.0 = Debug|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Debug|x86.ActiveCfg = Debug|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Debug|x86.Build.0 = Debug|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|Any CPU.Build.0 = Release|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|Win32.ActiveCfg = Release|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|Win32.Build.0 = Release|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|x64.ActiveCfg = Release|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|x64.Build.0 = Release|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|x86.ActiveCfg = Release|Any CPU + {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -949,5 +971,6 @@ Global {FFE772D4-4EA0-4CFF-959F-F03A665D21EE} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {B1E67507-8344-4759-97C0-5938BE4028C3} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {55FDA93E-B630-4EBF-BE13-45ABF23FF66F} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {F15C15AA-FF3C-4B9D-B779-157573A026D6} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.Providers.Test/Jellyfin.Providers.Test.csproj b/tests/Jellyfin.Providers.Test/Jellyfin.Providers.Test.csproj new file mode 100644 index 000000000..85357d199 --- /dev/null +++ b/tests/Jellyfin.Providers.Test/Jellyfin.Providers.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.Providers.Test/UnitTest1.cs b/tests/Jellyfin.Providers.Test/UnitTest1.cs new file mode 100644 index 000000000..4216c7a9b --- /dev/null +++ b/tests/Jellyfin.Providers.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.Providers.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From b5ad16c8637a904c8837d03450441bfc51356355 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:44:36 +0000 Subject: [PATCH 20/25] Jellyfin.WebDashboard.Test --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.WebDashboard.Test.csproj | 19 +++++++++++++++ tests/Jellyfin.WebDashboard.Test/UnitTest1.cs | 14 +++++++++++ 3 files changed, 56 insertions(+) create mode 100644 tests/Jellyfin.WebDashboard.Test/Jellyfin.WebDashboard.Test.csproj create mode 100644 tests/Jellyfin.WebDashboard.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index a4043f47a..90e514db0 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -104,6 +104,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Model.Test", "test EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Providers.Test", "tests\Jellyfin.Providers.Test\Jellyfin.Providers.Test.csproj", "{F15C15AA-FF3C-4B9D-B779-157573A026D6}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.WebDashboard.Test", "tests\Jellyfin.WebDashboard.Test\Jellyfin.WebDashboard.Test.csproj", "{7D87AEB7-A2AD-4649-A9BC-ED577851D282}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -945,6 +947,26 @@ Global {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|x64.Build.0 = Release|Any CPU {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|x86.ActiveCfg = Release|Any CPU {F15C15AA-FF3C-4B9D-B779-157573A026D6}.Release|x86.Build.0 = Release|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Debug|Win32.ActiveCfg = Debug|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Debug|Win32.Build.0 = Debug|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Debug|x64.ActiveCfg = Debug|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Debug|x64.Build.0 = Debug|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Debug|x86.ActiveCfg = Debug|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Debug|x86.Build.0 = Debug|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|Any CPU.Build.0 = Release|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|Win32.ActiveCfg = Release|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|Win32.Build.0 = Release|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|x64.ActiveCfg = Release|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|x64.Build.0 = Release|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|x86.ActiveCfg = Release|Any CPU + {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -972,5 +994,6 @@ Global {B1E67507-8344-4759-97C0-5938BE4028C3} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {55FDA93E-B630-4EBF-BE13-45ABF23FF66F} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {F15C15AA-FF3C-4B9D-B779-157573A026D6} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {7D87AEB7-A2AD-4649-A9BC-ED577851D282} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.WebDashboard.Test/Jellyfin.WebDashboard.Test.csproj b/tests/Jellyfin.WebDashboard.Test/Jellyfin.WebDashboard.Test.csproj new file mode 100644 index 000000000..d3ddc6783 --- /dev/null +++ b/tests/Jellyfin.WebDashboard.Test/Jellyfin.WebDashboard.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.WebDashboard.Test/UnitTest1.cs b/tests/Jellyfin.WebDashboard.Test/UnitTest1.cs new file mode 100644 index 000000000..a636cb340 --- /dev/null +++ b/tests/Jellyfin.WebDashboard.Test/UnitTest1.cs @@ -0,0 +1,14 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.WebDashboard.Test +{ + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From 3dc0985bbd7575276a51bb4fa2c4e832afb35824 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:48:53 +0000 Subject: [PATCH 21/25] Jellyfin.XbmcMetadata.Test --- MediaBrowser.sln | 23 +++++++++++++++++++ .../Jellyfin.XbmcMetadata.Test.csproj | 19 +++++++++++++++ tests/Jellyfin.XbmcMetadata.Test/UnitTest1.cs | 15 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/Jellyfin.XbmcMetadata.Test/Jellyfin.XbmcMetadata.Test.csproj create mode 100644 tests/Jellyfin.XbmcMetadata.Test/UnitTest1.cs diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 90e514db0..4c0db4880 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -106,6 +106,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Providers.Test", " EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.WebDashboard.Test", "tests\Jellyfin.WebDashboard.Test\Jellyfin.WebDashboard.Test.csproj", "{7D87AEB7-A2AD-4649-A9BC-ED577851D282}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.XbmcMetadata.Test", "tests\Jellyfin.XbmcMetadata.Test\Jellyfin.XbmcMetadata.Test.csproj", "{368FAC59-60D1-49D6-AF2C-EC489551C5E4}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -967,6 +969,26 @@ Global {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|x64.Build.0 = Release|Any CPU {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|x86.ActiveCfg = Release|Any CPU {7D87AEB7-A2AD-4649-A9BC-ED577851D282}.Release|x86.Build.0 = Release|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Debug|Win32.ActiveCfg = Debug|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Debug|Win32.Build.0 = Debug|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Debug|x64.ActiveCfg = Debug|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Debug|x64.Build.0 = Debug|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Debug|x86.ActiveCfg = Debug|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Debug|x86.Build.0 = Debug|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Release|Any CPU.Build.0 = Release|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Release|Win32.ActiveCfg = Release|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Release|Win32.Build.0 = Release|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Release|x64.ActiveCfg = Release|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Release|x64.Build.0 = Release|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Release|x86.ActiveCfg = Release|Any CPU + {368FAC59-60D1-49D6-AF2C-EC489551C5E4}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -995,5 +1017,6 @@ Global {55FDA93E-B630-4EBF-BE13-45ABF23FF66F} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {F15C15AA-FF3C-4B9D-B779-157573A026D6} = {2AC30C72-9249-4621-967C-929ECA51D9F2} {7D87AEB7-A2AD-4649-A9BC-ED577851D282} = {2AC30C72-9249-4621-967C-929ECA51D9F2} + {368FAC59-60D1-49D6-AF2C-EC489551C5E4} = {2AC30C72-9249-4621-967C-929ECA51D9F2} EndGlobalSection EndGlobal diff --git a/tests/Jellyfin.XbmcMetadata.Test/Jellyfin.XbmcMetadata.Test.csproj b/tests/Jellyfin.XbmcMetadata.Test/Jellyfin.XbmcMetadata.Test.csproj new file mode 100644 index 000000000..85357d199 --- /dev/null +++ b/tests/Jellyfin.XbmcMetadata.Test/Jellyfin.XbmcMetadata.Test.csproj @@ -0,0 +1,19 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + diff --git a/tests/Jellyfin.XbmcMetadata.Test/UnitTest1.cs b/tests/Jellyfin.XbmcMetadata.Test/UnitTest1.cs new file mode 100644 index 000000000..435c7e417 --- /dev/null +++ b/tests/Jellyfin.XbmcMetadata.Test/UnitTest1.cs @@ -0,0 +1,15 @@ +using System; +using NUnit.Framework; + +namespace Jellyfin.XbmcMetadata.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void Test1() + { + Assert.That(true, Is.True); + } + } +} \ No newline at end of file From e7b6deb181f25be957d99fa598eff94e252282b2 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 21:54:30 +0000 Subject: [PATCH 22/25] Project references --- tests/BDInfo.Test/BDInfo.Test.csproj | 4 ++++ tests/DvdLib.Test/DvdLib.Test.csproj | 4 ++++ tests/IsoMounter.Test/IsoMounter.Test.csproj | 4 ++++ tests/Jellyfin.Api.Test/Jellyfin.Api.Test.csproj | 4 ++++ tests/Jellyfin.Common.Test/Jellyfin.Common.Test.csproj | 4 ++++ .../Jellyfin.Controller.Test/Jellyfin.Controller.Test.csproj | 4 ++++ tests/Jellyfin.Dlna.Test/Jellyfin.Dlna.Test.csproj | 4 ++++ .../Jellyfin.Drawing.ImageMagick.Test.csproj | 4 ++++ .../Jellyfin.Drawing.Skia.Test.csproj | 4 ++++ tests/Jellyfin.Drawing.Test/Jellyfin.Drawing.Test.csproj | 4 ++++ .../Jellyfin.LocalMetadata.Test.csproj | 4 ++++ tests/Jellyfin.Model.Test/Jellyfin.Model.Test.csproj | 4 ++++ tests/Jellyfin.Naming.Test/Jellyfin.Naming.Test.csproj | 4 ++++ .../Jellyfin.Notifications.Test.csproj | 4 ++++ tests/Jellyfin.Photos.Test/Jellyfin.Photos.Test.csproj | 4 ++++ tests/Jellyfin.Providers.Test/Jellyfin.Providers.Test.csproj | 4 ++++ .../Jellyfin.Server.Implementations.Test.csproj | 4 ++++ tests/Jellyfin.Test/Jellyfin.Test.csproj | 4 ++++ .../Jellyfin.WebDashboard.Test.csproj | 4 ++++ .../Jellyfin.XbmcMetadata.Test.csproj | 4 ++++ tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj | 4 ++++ 21 files changed, 84 insertions(+) diff --git a/tests/BDInfo.Test/BDInfo.Test.csproj b/tests/BDInfo.Test/BDInfo.Test.csproj index d3ddc6783..f0438f394 100644 --- a/tests/BDInfo.Test/BDInfo.Test.csproj +++ b/tests/BDInfo.Test/BDInfo.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/DvdLib.Test/DvdLib.Test.csproj b/tests/DvdLib.Test/DvdLib.Test.csproj index 85357d199..0fe8602bf 100644 --- a/tests/DvdLib.Test/DvdLib.Test.csproj +++ b/tests/DvdLib.Test/DvdLib.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/IsoMounter.Test/IsoMounter.Test.csproj b/tests/IsoMounter.Test/IsoMounter.Test.csproj index d3ddc6783..f5b51267f 100644 --- a/tests/IsoMounter.Test/IsoMounter.Test.csproj +++ b/tests/IsoMounter.Test/IsoMounter.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Api.Test/Jellyfin.Api.Test.csproj b/tests/Jellyfin.Api.Test/Jellyfin.Api.Test.csproj index d3ddc6783..fd757001d 100644 --- a/tests/Jellyfin.Api.Test/Jellyfin.Api.Test.csproj +++ b/tests/Jellyfin.Api.Test/Jellyfin.Api.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Common.Test/Jellyfin.Common.Test.csproj b/tests/Jellyfin.Common.Test/Jellyfin.Common.Test.csproj index d3ddc6783..f7267a9da 100644 --- a/tests/Jellyfin.Common.Test/Jellyfin.Common.Test.csproj +++ b/tests/Jellyfin.Common.Test/Jellyfin.Common.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Controller.Test/Jellyfin.Controller.Test.csproj b/tests/Jellyfin.Controller.Test/Jellyfin.Controller.Test.csproj index 85357d199..707174c2d 100644 --- a/tests/Jellyfin.Controller.Test/Jellyfin.Controller.Test.csproj +++ b/tests/Jellyfin.Controller.Test/Jellyfin.Controller.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Dlna.Test/Jellyfin.Dlna.Test.csproj b/tests/Jellyfin.Dlna.Test/Jellyfin.Dlna.Test.csproj index d3ddc6783..f457544a6 100644 --- a/tests/Jellyfin.Dlna.Test/Jellyfin.Dlna.Test.csproj +++ b/tests/Jellyfin.Dlna.Test/Jellyfin.Dlna.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Drawing.ImageMagick.Test/Jellyfin.Drawing.ImageMagick.Test.csproj b/tests/Jellyfin.Drawing.ImageMagick.Test/Jellyfin.Drawing.ImageMagick.Test.csproj index d3ddc6783..63ece8021 100644 --- a/tests/Jellyfin.Drawing.ImageMagick.Test/Jellyfin.Drawing.ImageMagick.Test.csproj +++ b/tests/Jellyfin.Drawing.ImageMagick.Test/Jellyfin.Drawing.ImageMagick.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Drawing.Skia.Test/Jellyfin.Drawing.Skia.Test.csproj b/tests/Jellyfin.Drawing.Skia.Test/Jellyfin.Drawing.Skia.Test.csproj index d3ddc6783..180203b63 100644 --- a/tests/Jellyfin.Drawing.Skia.Test/Jellyfin.Drawing.Skia.Test.csproj +++ b/tests/Jellyfin.Drawing.Skia.Test/Jellyfin.Drawing.Skia.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Drawing.Test/Jellyfin.Drawing.Test.csproj b/tests/Jellyfin.Drawing.Test/Jellyfin.Drawing.Test.csproj index d3ddc6783..66911e86f 100644 --- a/tests/Jellyfin.Drawing.Test/Jellyfin.Drawing.Test.csproj +++ b/tests/Jellyfin.Drawing.Test/Jellyfin.Drawing.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.LocalMetadata.Test/Jellyfin.LocalMetadata.Test.csproj b/tests/Jellyfin.LocalMetadata.Test/Jellyfin.LocalMetadata.Test.csproj index d3ddc6783..3a53de317 100644 --- a/tests/Jellyfin.LocalMetadata.Test/Jellyfin.LocalMetadata.Test.csproj +++ b/tests/Jellyfin.LocalMetadata.Test/Jellyfin.LocalMetadata.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Model.Test/Jellyfin.Model.Test.csproj b/tests/Jellyfin.Model.Test/Jellyfin.Model.Test.csproj index d3ddc6783..fdf65127d 100644 --- a/tests/Jellyfin.Model.Test/Jellyfin.Model.Test.csproj +++ b/tests/Jellyfin.Model.Test/Jellyfin.Model.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Naming.Test/Jellyfin.Naming.Test.csproj b/tests/Jellyfin.Naming.Test/Jellyfin.Naming.Test.csproj index 85357d199..ad192467f 100644 --- a/tests/Jellyfin.Naming.Test/Jellyfin.Naming.Test.csproj +++ b/tests/Jellyfin.Naming.Test/Jellyfin.Naming.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Notifications.Test/Jellyfin.Notifications.Test.csproj b/tests/Jellyfin.Notifications.Test/Jellyfin.Notifications.Test.csproj index d3ddc6783..e3fd48975 100644 --- a/tests/Jellyfin.Notifications.Test/Jellyfin.Notifications.Test.csproj +++ b/tests/Jellyfin.Notifications.Test/Jellyfin.Notifications.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Photos.Test/Jellyfin.Photos.Test.csproj b/tests/Jellyfin.Photos.Test/Jellyfin.Photos.Test.csproj index d3ddc6783..09eafca22 100644 --- a/tests/Jellyfin.Photos.Test/Jellyfin.Photos.Test.csproj +++ b/tests/Jellyfin.Photos.Test/Jellyfin.Photos.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Providers.Test/Jellyfin.Providers.Test.csproj b/tests/Jellyfin.Providers.Test/Jellyfin.Providers.Test.csproj index 85357d199..e1f49fed2 100644 --- a/tests/Jellyfin.Providers.Test/Jellyfin.Providers.Test.csproj +++ b/tests/Jellyfin.Providers.Test/Jellyfin.Providers.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Server.Implementations.Test/Jellyfin.Server.Implementations.Test.csproj b/tests/Jellyfin.Server.Implementations.Test/Jellyfin.Server.Implementations.Test.csproj index d3ddc6783..1ae578cd7 100644 --- a/tests/Jellyfin.Server.Implementations.Test/Jellyfin.Server.Implementations.Test.csproj +++ b/tests/Jellyfin.Server.Implementations.Test/Jellyfin.Server.Implementations.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.Test/Jellyfin.Test.csproj b/tests/Jellyfin.Test/Jellyfin.Test.csproj index d3ddc6783..8b94543e7 100644 --- a/tests/Jellyfin.Test/Jellyfin.Test.csproj +++ b/tests/Jellyfin.Test/Jellyfin.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.WebDashboard.Test/Jellyfin.WebDashboard.Test.csproj b/tests/Jellyfin.WebDashboard.Test/Jellyfin.WebDashboard.Test.csproj index d3ddc6783..762b718a6 100644 --- a/tests/Jellyfin.WebDashboard.Test/Jellyfin.WebDashboard.Test.csproj +++ b/tests/Jellyfin.WebDashboard.Test/Jellyfin.WebDashboard.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.XbmcMetadata.Test/Jellyfin.XbmcMetadata.Test.csproj b/tests/Jellyfin.XbmcMetadata.Test/Jellyfin.XbmcMetadata.Test.csproj index 85357d199..499dc1383 100644 --- a/tests/Jellyfin.XbmcMetadata.Test/Jellyfin.XbmcMetadata.Test.csproj +++ b/tests/Jellyfin.XbmcMetadata.Test/Jellyfin.XbmcMetadata.Test.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj b/tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj index d3ddc6783..b63855e11 100644 --- a/tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj +++ b/tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj @@ -16,4 +16,8 @@ + + + + From 6ce4672b10ce017d0b0561ce09fdfd311702bcc8 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 22:10:44 +0000 Subject: [PATCH 23/25] Import tests from old project tests --- tests/Jellyfin.XmlTv.Test/UnitTest1.cs | 15 ---- .../XmlTvReaderDateTimeTests.cs | 85 +++++++++++++++++++ 2 files changed, 85 insertions(+), 15 deletions(-) delete mode 100644 tests/Jellyfin.XmlTv.Test/UnitTest1.cs create mode 100644 tests/Jellyfin.XmlTv.Test/XmlTvReaderDateTimeTests.cs diff --git a/tests/Jellyfin.XmlTv.Test/UnitTest1.cs b/tests/Jellyfin.XmlTv.Test/UnitTest1.cs deleted file mode 100644 index 19e1b6348..000000000 --- a/tests/Jellyfin.XmlTv.Test/UnitTest1.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using NUnit.Framework; - -namespace Jellyfin.XmlTv.Test -{ - [TestFixture] - public class UnitTest1 - { - [Test] - public void Test1() - { - Assert.That(true, Is.True); - } - } -} \ No newline at end of file diff --git a/tests/Jellyfin.XmlTv.Test/XmlTvReaderDateTimeTests.cs b/tests/Jellyfin.XmlTv.Test/XmlTvReaderDateTimeTests.cs new file mode 100644 index 000000000..4f139b171 --- /dev/null +++ b/tests/Jellyfin.XmlTv.Test/XmlTvReaderDateTimeTests.cs @@ -0,0 +1,85 @@ +using System; +using System.IO; +using Emby.XmlTv.Classes; +using NUnit.Framework; + +namespace Jellyfin.XmlTv.Test +{ + [TestFixture] + public class XmlTvReaderDateTimeTests + { + [Test] + public void ShouldHandlePartDates() + { + var testFile = Path.GetFullPath(@"MultilanguageData.xml"); + var reader = new XmlTvReader(testFile, "es"); + + Assert.AreEqual(Parse("01 Jan 2016 00:00:00"), reader.ParseDate("2016")); + Assert.AreEqual(Parse("01 Jan 2016 00:00:00"), reader.ParseDate("201601")); + Assert.AreEqual(Parse("01 Jan 2016 00:00:00"), reader.ParseDate("20160101")); + Assert.AreEqual(Parse("01 Jan 2016 12:00:00"), reader.ParseDate("2016010112")); + Assert.AreEqual(Parse("01 Jan 2016 12:34:00"), reader.ParseDate("201601011234")); + Assert.AreEqual(Parse("01 Jan 2016 12:34:56"), reader.ParseDate("20160101123456")); + } + + [Test] + public void ShouldHandleDateWithOffset() + { + var testFile = Path.GetFullPath(@"MultilanguageData.xml"); + var reader = new XmlTvReader(testFile, "es"); + + // parse variations on 1:00AM + Assert.AreEqual(Parse("01 Jan 2016 12:00:00"), reader.ParseDate("20160101120000 +0000")); + Assert.AreEqual(Parse("01 Jan 2016 02:00:00"), reader.ParseDate("20160101120000 +1000")); + Assert.AreEqual(Parse("01 Jan 2016 11:00:00"), reader.ParseDate("20160101120000 +0100")); + Assert.AreEqual(Parse("01 Jan 2016 11:50:00"), reader.ParseDate("20160101120000 +0010")); + Assert.AreEqual(Parse("01 Jan 2016 11:59:00"), reader.ParseDate("20160101120000 +0001")); + + Assert.AreEqual(Parse("01 Jan 2016 22:00:00"), reader.ParseDate("20160101120000 -1000")); + Assert.AreEqual(Parse("01 Jan 2016 13:00:00"), reader.ParseDate("20160101120000 -0100")); + Assert.AreEqual(Parse("01 Jan 2016 12:10:00"), reader.ParseDate("20160101120000 -0010")); + Assert.AreEqual(Parse("01 Jan 2016 12:01:00"), reader.ParseDate("20160101120000 -0001")); + } + + [Test] + public void ShouldHandlePartDatesWithOffset() + { + var testFile = Path.GetFullPath(@"MultilanguageData.xml"); + var reader = new XmlTvReader(testFile, "es"); + + Assert.AreEqual(Parse("01 Jan 2016 01:00:00"), reader.ParseDate("2016 -0100")); + Assert.AreEqual(Parse("01 Jan 2016 01:00:00"), reader.ParseDate("201601 -0100")); + Assert.AreEqual(Parse("01 Jan 2016 01:00:00"), reader.ParseDate("20160101 -0100")); + Assert.AreEqual(Parse("01 Jan 2016 13:00:00"), reader.ParseDate("2016010112 -0100")); + Assert.AreEqual(Parse("01 Jan 2016 13:00:00"), reader.ParseDate("201601011200 -0100")); + Assert.AreEqual(Parse("01 Jan 2016 13:00:00"), reader.ParseDate("20160101120000 -0100")); + } + + [Test] + public void ShouldHandleSpaces() + { + var testFile = Path.GetFullPath(@"MultilanguageData.xml"); + var reader = new XmlTvReader(testFile, "es"); + + // parse variations on 1:00AM + Assert.AreEqual(Parse("01 Jan 2016 12:00:00"), reader.ParseDate("20160101120000 +000")); + Assert.AreEqual(Parse("01 Jan 2016 12:00:00"), reader.ParseDate("20160101120000 +00")); + Assert.AreEqual(Parse("01 Jan 2016 12:00:00"), reader.ParseDate("20160101120000 +0")); + } + + [Test] + public void ShouldHandleSpaces2() + { + var testFile = Path.GetFullPath(@"MultilanguageData.xml"); + var reader = new XmlTvReader(testFile, "es"); + + // parse variations on 1:00AM + Assert.AreEqual(Parse("01 Jan 2016 12:00:00"), reader.ParseDate("20160101120000 0")); + } + + private static DateTimeOffset Parse(string value) + { + return new DateTimeOffset(DateTimeOffset.Parse(value).Ticks, TimeSpan.Zero); + } + } +} \ No newline at end of file From 757d3e7c7d2f0d422d8ab658b311d8fa2f195367 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 22:37:15 +0000 Subject: [PATCH 24/25] Load data files --- .../Jellyfin.XmlTv.Test.csproj | 6 + .../XmlTvReaderDateTimeTests.cs | 23 ++- .../XmlTvReaderLanguageTests.cs | 173 ++++++++++++++++++ 3 files changed, 192 insertions(+), 10 deletions(-) create mode 100644 tests/Jellyfin.XmlTv.Test/XmlTvReaderLanguageTests.cs diff --git a/tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj b/tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj index b63855e11..6740a65c9 100644 --- a/tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj +++ b/tests/Jellyfin.XmlTv.Test/Jellyfin.XmlTv.Test.csproj @@ -20,4 +20,10 @@ + + + Always + + + diff --git a/tests/Jellyfin.XmlTv.Test/XmlTvReaderDateTimeTests.cs b/tests/Jellyfin.XmlTv.Test/XmlTvReaderDateTimeTests.cs index 4f139b171..12ddec713 100644 --- a/tests/Jellyfin.XmlTv.Test/XmlTvReaderDateTimeTests.cs +++ b/tests/Jellyfin.XmlTv.Test/XmlTvReaderDateTimeTests.cs @@ -8,11 +8,18 @@ namespace Jellyfin.XmlTv.Test [TestFixture] public class XmlTvReaderDateTimeTests { + private string _testFilePath; + + [SetUp] + public void BeforeEachTest() + { + _testFilePath = Path.GetFullPath(Path.Combine("XmlFiles", "MultilanguageData.xml")); + } + [Test] public void ShouldHandlePartDates() { - var testFile = Path.GetFullPath(@"MultilanguageData.xml"); - var reader = new XmlTvReader(testFile, "es"); + var reader = new XmlTvReader(_testFilePath, "es"); Assert.AreEqual(Parse("01 Jan 2016 00:00:00"), reader.ParseDate("2016")); Assert.AreEqual(Parse("01 Jan 2016 00:00:00"), reader.ParseDate("201601")); @@ -25,8 +32,7 @@ namespace Jellyfin.XmlTv.Test [Test] public void ShouldHandleDateWithOffset() { - var testFile = Path.GetFullPath(@"MultilanguageData.xml"); - var reader = new XmlTvReader(testFile, "es"); + var reader = new XmlTvReader(_testFilePath, "es"); // parse variations on 1:00AM Assert.AreEqual(Parse("01 Jan 2016 12:00:00"), reader.ParseDate("20160101120000 +0000")); @@ -44,8 +50,7 @@ namespace Jellyfin.XmlTv.Test [Test] public void ShouldHandlePartDatesWithOffset() { - var testFile = Path.GetFullPath(@"MultilanguageData.xml"); - var reader = new XmlTvReader(testFile, "es"); + var reader = new XmlTvReader(_testFilePath, "es"); Assert.AreEqual(Parse("01 Jan 2016 01:00:00"), reader.ParseDate("2016 -0100")); Assert.AreEqual(Parse("01 Jan 2016 01:00:00"), reader.ParseDate("201601 -0100")); @@ -58,8 +63,7 @@ namespace Jellyfin.XmlTv.Test [Test] public void ShouldHandleSpaces() { - var testFile = Path.GetFullPath(@"MultilanguageData.xml"); - var reader = new XmlTvReader(testFile, "es"); + var reader = new XmlTvReader(_testFilePath, "es"); // parse variations on 1:00AM Assert.AreEqual(Parse("01 Jan 2016 12:00:00"), reader.ParseDate("20160101120000 +000")); @@ -70,8 +74,7 @@ namespace Jellyfin.XmlTv.Test [Test] public void ShouldHandleSpaces2() { - var testFile = Path.GetFullPath(@"MultilanguageData.xml"); - var reader = new XmlTvReader(testFile, "es"); + var reader = new XmlTvReader(_testFilePath, "es"); // parse variations on 1:00AM Assert.AreEqual(Parse("01 Jan 2016 12:00:00"), reader.ParseDate("20160101120000 0")); diff --git a/tests/Jellyfin.XmlTv.Test/XmlTvReaderLanguageTests.cs b/tests/Jellyfin.XmlTv.Test/XmlTvReaderLanguageTests.cs new file mode 100644 index 000000000..145ab2598 --- /dev/null +++ b/tests/Jellyfin.XmlTv.Test/XmlTvReaderLanguageTests.cs @@ -0,0 +1,173 @@ +using System; +using System.IO; +using System.Linq; +using System.Threading; +using Emby.XmlTv.Classes; +using NUnit.Framework; + +namespace Jellyfin.XmlTv.Test +{ + [TestFixture] + public class XmlTvReaderLanguageTests + { + private string _testFilePath; + + [SetUp] + public void BeforeEachTest() + { + _testFilePath = Path.GetFullPath(Path.Combine("XmlFiles", "MultilanguageData.xml")); + } + + /* + Homes Under the Hammer - Spanish + Homes Under the Hammer - Spanish 2 + Homes Under the Hammer - English + Homes Under the Hammer - English 2 + Homes Under the Hammer - Empty Language + Homes Under the Hammer - Empty Language 2 + Homes Under the Hammer - No Language + Homes Under the Hammer - No Language 2 + */ + + /* Expected Behaviour: + - Language = Null Homes Under the Hammer - No Language + - Language = "" Homes Under the Hammer - No Language + - Language = es Homes Under the Hammer - Spanish + - Language = en Homes Under the Hammer - English + */ + + [Test] + public void Should_Return_The_First_Matching_Language_ES() + { + var reader = new XmlTvReader(_testFilePath, "es"); + var channel = reader.GetChannels().FirstOrDefault(); + Assert.IsNotNull(channel); + + var startDate = new DateTime(2015, 11, 26); + var cancellationToken = new CancellationToken(); + var programme = reader.GetProgrammes(channel.Id, startDate, startDate.AddDays(1), cancellationToken).FirstOrDefault(); + + Assert.IsNotNull(programme); + Assert.AreEqual("Homes Under the Hammer - Spanish", programme.Title); + Assert.AreEqual(1, programme.Categories.Count); + Assert.AreEqual("Property - Spanish", programme.Categories[0]); + } + + [Test] + public void Should_Return_The_First_Matching_Language_EN() + { + var reader = new XmlTvReader(_testFilePath, "en"); + + var channel = reader.GetChannels().FirstOrDefault(); + Assert.IsNotNull(channel); + + var startDate = new DateTime(2015, 11, 26); + var cancellationToken = new CancellationToken(); + var programme = reader.GetProgrammes(channel.Id, startDate, startDate.AddDays(1), cancellationToken).FirstOrDefault(); + + Assert.IsNotNull(programme); + Assert.AreEqual("Homes Under the Hammer - English", programme.Title); + Assert.AreEqual(1, programme.Categories.Count); + Assert.AreEqual("Property - English", programme.Categories[0]); + } + + [Test] + public void Should_Return_The_First_Matching_With_No_Language() + { + var reader = new XmlTvReader(_testFilePath, null); + + var channel = reader.GetChannels().FirstOrDefault(); + Assert.IsNotNull(channel); + + var startDate = new DateTime(2015, 11, 26); + var cancellationToken = new CancellationToken(); + var programme = reader.GetProgrammes(channel.Id, startDate, startDate.AddDays(1), cancellationToken).FirstOrDefault(); + + Assert.IsNotNull(programme); + Assert.AreEqual("Homes Under the Hammer - No Language", programme.Title); + Assert.AreEqual(1, programme.Categories.Count); + Assert.AreEqual("Property - No Language", programme.Categories[0]); + } + + [Test] + public void Should_Return_The_First_Matching_With_Empty_Language() + { + var reader = new XmlTvReader(_testFilePath, String.Empty); + + var channel = reader.GetChannels().FirstOrDefault(); + Assert.IsNotNull(channel); + + var startDate = new DateTime(2015, 11, 26); + var cancellationToken = new CancellationToken(); + var programme = reader.GetProgrammes(channel.Id, startDate, startDate.AddDays(1), cancellationToken).FirstOrDefault(); + + Assert.IsNotNull(programme); + Assert.AreEqual("Homes Under the Hammer - Empty Language", programme.Title); + Assert.AreEqual(1, programme.Categories.Count); + Assert.AreEqual("Property - Empty Language", programme.Categories[0]); + } + + [Test] + public void Should_Return_The_First_When_NoMatchFound() + { + var reader = new XmlTvReader(_testFilePath, "es"); // There are no titles or categories for spanish + + var channel = reader.GetChannels().FirstOrDefault(); + Assert.IsNotNull(channel); + + var startDate = new DateTime(2015, 11, 26); + var cancellationToken = new CancellationToken(); + var programme = reader.GetProgrammes(channel.Id, startDate, startDate.AddDays(1), cancellationToken).Skip(1).FirstOrDefault(); + + Assert.IsNotNull(programme); + Assert.AreEqual("Homes Under the Hammer - English", programme.Title); + + // Should return all categories + Assert.AreEqual(2, programme.Categories.Count); + Assert.IsTrue(programme.Categories.Contains("Property - English")); + Assert.IsTrue(programme.Categories.Contains("Property - Empty Language")); + } + + [Test] + public void Should_Return_The_First_When_NoLanguage() + { + var reader = new XmlTvReader(_testFilePath, null); + + var channel = reader.GetChannels().FirstOrDefault(); + Assert.IsNotNull(channel); + + var startDate = new DateTime(2015, 11, 26); + var cancellationToken = new CancellationToken(); + var programme = reader.GetProgrammes(channel.Id, startDate, startDate.AddDays(1), cancellationToken).Skip(1).FirstOrDefault(); + + Assert.IsNotNull(programme); + Assert.AreEqual("Homes Under the Hammer - English", programme.Title); // Should return the first in the list + + // Should return all categories + Assert.AreEqual(2, programme.Categories.Count); + Assert.IsTrue(programme.Categories.Contains("Property - English")); + Assert.IsTrue(programme.Categories.Contains("Property - Empty Language")); + } + + [Test] + public void Should_Return_All_Languages() + { + var reader = new XmlTvReader(_testFilePath); + var cancellationToken = new CancellationToken(); + + var results = reader.GetLanguages(cancellationToken); + Assert.IsNotNull(results); + + foreach (var result in results) + { + Console.WriteLine("{0} - {1}", result.Name, result.Relevance); + } + + Assert.AreEqual(2, results.Count); + Assert.AreEqual("en", results[0].Name); + Assert.AreEqual(11, results[0].Relevance); + Assert.AreEqual("es", results[1].Name); + Assert.AreEqual(3, results[1].Relevance); + } + } +} \ No newline at end of file From 8a7f0b66958d9526e4e73ef7dda1d9efde9e0420 Mon Sep 17 00:00:00 2001 From: Ben Magee Date: Wed, 12 Dec 2018 23:06:18 +0000 Subject: [PATCH 25/25] Imported XmlTv tests --- tests/Jellyfin.XmlTv.Test/XmlTvReaderTests.cs | 217 ++++++++++++++++++ 1 file changed, 217 insertions(+) create mode 100644 tests/Jellyfin.XmlTv.Test/XmlTvReaderTests.cs diff --git a/tests/Jellyfin.XmlTv.Test/XmlTvReaderTests.cs b/tests/Jellyfin.XmlTv.Test/XmlTvReaderTests.cs new file mode 100644 index 000000000..d44081970 --- /dev/null +++ b/tests/Jellyfin.XmlTv.Test/XmlTvReaderTests.cs @@ -0,0 +1,217 @@ +using System; +using System.IO; +using System.Linq; +using System.Threading; +using Emby.XmlTv.Classes; +using NUnit.Framework; + +namespace Jellyfin.XmlTv.Test +{ + [TestFixture] + public class XmlTvReaderTests + { + private string _ukDataPath; + private string _esDataPath; + private string _honeybeeDataPath; + + [SetUp] + public void BeforeEachTest() + { + _ukDataPath = Path.GetFullPath(Path.Combine("XmlFiles", "UK_Data.xml")); + _esDataPath = Path.GetFullPath(Path.Combine("XmlFiles", "ES_MultiLanguageData.xml")); + _honeybeeDataPath = Path.GetFullPath(Path.Combine("XmlFiles", "honeybee.xml")); + } + + [Test] + public void UK_DataTest_ChannelsTest() + { + var reader = new XmlTvReader(_ukDataPath); + + var channels = reader.GetChannels().ToList(); + Assert.AreEqual(5, channels.Count); + + // Check each channel + var channel = channels.SingleOrDefault(c => c.Id == "UK_RT_2667"); + Assert.IsNotNull(channel); + Assert.AreEqual("BBC1 HD", channel.DisplayName); + Assert.AreEqual("7.1", channel.Number); + Assert.IsNotNull(channel.Icon); + Assert.AreEqual("Logo_UK_RT_2667", channel.Icon.Source); + Assert.AreEqual(100, channel.Icon.Width); + Assert.AreEqual(200, channel.Icon.Height); + + channel = channels.SingleOrDefault(c => c.Id == "UK_RT_105"); + Assert.IsNotNull(channel); + Assert.AreEqual("BBC2", channel.DisplayName); + Assert.IsNotNull(channel.Icon); + Assert.AreEqual("Logo_UK_RT_105", channel.Icon.Source); + Assert.IsFalse(channel.Icon.Width.HasValue); + Assert.IsFalse(channel.Icon.Height.HasValue); + + channel = channels.SingleOrDefault(c => c.Id == "UK_RT_2118"); + Assert.IsNotNull(channel); + Assert.AreEqual("ITV1 HD", channel.DisplayName); + Assert.IsNotNull(channel.Icon); + Assert.AreEqual("Logo_UK_RT_2118", channel.Icon.Source); + Assert.AreEqual(100, channel.Icon.Width); + Assert.IsFalse(channel.Icon.Height.HasValue); + + channel = channels.SingleOrDefault(c => c.Id == "UK_RT_2056"); + Assert.IsNotNull(channel); + Assert.AreEqual("Channel 4 HD", channel.DisplayName); + Assert.IsNotNull(channel.Icon); + Assert.AreEqual("Logo_UK_RT_2056", channel.Icon.Source); + Assert.IsFalse(channel.Icon.Width.HasValue); + Assert.AreEqual(200, channel.Icon.Height); + + channel = channels.SingleOrDefault(c => c.Id == "UK_RT_134"); + Assert.IsNotNull(channel); + Assert.AreEqual("Channel 5", channel.DisplayName); + Assert.IsNull(channel.Icon); + } + + [Test] + public void UK_DataTest_GeneralTest() + { + var reader = new XmlTvReader(_ukDataPath, null); + + var channels = reader.GetChannels().ToList(); + Assert.AreEqual(5, channels.Count); + + // Pick a channel to check the data for + var channel = channels.SingleOrDefault(c => c.Id == "UK_RT_2056"); + Assert.IsNotNull(channel); + + var startDate = new DateTime(2015, 11, 26); + var cancellationToken = new CancellationToken(); + var programmes = reader.GetProgrammes(channel.Id, startDate, startDate.AddDays(1), cancellationToken).ToList(); + + Assert.AreEqual(27, programmes.Count); + var programme = programmes.SingleOrDefault(p => p.Title == "The Secret Life of"); + + Assert.IsNotNull(programme); + Assert.AreEqual(new DateTime(2015, 11, 26, 20, 0, 0), programme.StartDate); + Assert.AreEqual(new DateTime(2015, 11, 26, 21, 0, 0), programme.EndDate); + Assert.AreEqual("Cameras follow the youngsters' development after two weeks apart and time has made the heart grow fonder for Alfie and Emily, who are clearly happy to be back together. And although Alfie struggled to empathise with the rest of his peers before, a painting competition proves to be a turning point for him. George takes the children's rejection of his family recipe to heart, but goes on to triumph elsewhere, and romance is in the air when newcomer Sienna captures Arthur's heart.", programme.Description); + Assert.AreEqual("Documentary", programme.Categories.Single()); + Assert.IsNotNull(programme.Episode); + Assert.AreEqual("The Secret Life of 5 Year Olds", programme.Episode.Title); + Assert.AreEqual(1, programme.Episode.Series); + Assert.IsNull(programme.Episode.SeriesCount); + Assert.AreEqual(4, programme.Episode.Episode); + Assert.AreEqual(6, programme.Episode.EpisodeCount); + Assert.IsNotNull(programme.Premiere); + //Assert.AreEqual("First showing on national terrestrial TV", programme.Premiere.Details); + Assert.IsTrue(programme.IsNew); + } + + [Test] + public void UK_DataTest_MultipleTitles_SameLanguage_Should_ReturnFirstValue() + { + var reader = new XmlTvReader(_ukDataPath, null); + + /* + Homes Under the Hammer - Title 1 + Homes Under the Hammer - Title 2 + Homes Under the Hammer - Title 3 + */ + + var startDate = new DateTime(2015, 11, 26); + var cancellationToken = new CancellationToken(); + var programmes = reader.GetProgrammes("UK_RT_2667", startDate, startDate.AddDays(1), cancellationToken).ToList(); + var programme = programmes.SingleOrDefault(p => p.Title == "Homes Under the Hammer - Title 1"); + + Assert.IsNotNull(programme); + } + + [Test] + public void UK_DataTest_MultipleTitles_NoLanguage_Should_ReturnFirstValue() + { + var reader = new XmlTvReader(_ukDataPath, null); + + /* + Oxford Street Revealed - Title 1 + Oxford Street Revealed - Title 2 + Oxford Street Revealed - Title 3 + */ + + var startDate = new DateTime(2015, 11, 26); + var cancellationToken = new CancellationToken(); + var programmes = reader.GetProgrammes("UK_RT_2667", startDate, startDate.AddDays(1), cancellationToken).ToList(); + var programme = programmes.SingleOrDefault(p => p.Title == "Oxford Street Revealed - Title 1"); + + Assert.IsNotNull(programme); + } + + [Test] + public void ES_MultiLanguageDataTest() + { + var reader = new XmlTvReader(_esDataPath, "es"); // Specify the spanish language explicitly + + var channels = reader.GetChannels().ToList(); + Assert.AreEqual(141, channels.Count); + + // Pick a channel to check the data for + var channel = channels.SingleOrDefault(c => c.Id == "Canal + HD" && c.DisplayName == "Canal + HD"); + Assert.IsNotNull(channel); + + var startDate = new DateTime(2016, 02, 18); + var cancellationToken = new CancellationToken(); + var programmes = reader.GetProgrammes(channel.Id, startDate, startDate.AddDays(1), cancellationToken).ToList(); + + Assert.AreEqual(22, programmes.Count); + var programme = programmes.SingleOrDefault(p => p.Title == "This is Comedy. Judd Apatow & Co."); + + /* + + This is Comedy. Judd Apatow & Co. + This is Comedy + El resurgir creativo de la comedia estadounidense en los últimos 15 años ha tenido un nombre indiscutible, Judd Apatow, y unos colaboradores indispensables, sus amigos (actores, cómicos, escritores) Jonah Hill, Steve Carrell, Paul Rudd, Seth Rogen, Lena Dunham... A través de extractos de sus filmes y de entrevistas a algunos los miembros de su 'banda' (Adam Sandler, Lena Dunham o Jason Segel), este documental muestra la carrera de un productor y director excepcional que ha sido capaz de llevar la risa a su máxima expresión + + Jacky Goldberg + + 2014 + Documentales + Sociedad + + Francia + + TV-G + + + 3/5 + + + */ + + Assert.IsNotNull(programme); + Assert.AreEqual(new DateTime(2016, 02, 18, 4, 51, 0), programme.StartDate); + Assert.AreEqual(new DateTime(2016, 02, 18, 5, 54, 0), programme.EndDate); + Assert.AreEqual("El resurgir creativo de la comedia estadounidense en los últimos 15 años ha tenido un nombre indiscutible, Judd Apatow, y unos colaboradores indispensables, sus amigos (actores, cómicos, escritores) Jonah Hill, Steve Carrell, Paul Rudd, Seth Rogen, Lena Dunham... A través de extractos de sus filmes y de entrevistas a algunos los miembros de su 'banda' (Adam Sandler, Lena Dunham o Jason Segel), este documental muestra la carrera de un productor y director excepcional que ha sido capaz de llevar la risa a su máxima expresión", programme.Description); + Assert.AreEqual(2, programme.Categories.Count); + Assert.AreEqual("Documentales", programme.Categories[0]); + Assert.AreEqual("Sociedad", programme.Categories[1]); + Assert.IsNotNull(programme.Episode); + Assert.IsNull(programme.Episode.Episode); + Assert.IsNull(programme.Episode.EpisodeCount); + Assert.IsNull(programme.Episode.Part); + Assert.IsNull(programme.Episode.PartCount); + Assert.IsNull(programme.Episode.Series); + Assert.IsNull(programme.Episode.SeriesCount); + Assert.IsNull(programme.Episode.Title); + } + + [Test] + public void HoneybeeTest() + { + var reader = new XmlTvReader(_honeybeeDataPath, null); + + var channels = reader.GetChannels().ToList(); + Assert.AreEqual(16, channels.Count); + + var programs = reader.GetProgrammes("2013.honeybee.it", DateTime.UtcNow.AddYears(-1), + DateTime.UtcNow.AddYears(1), CancellationToken.None).ToList(); + Assert.AreEqual(297, programs.Count); + } + } +} \ No newline at end of file