diff --git a/API.UnitTests/API.UnitTests.csproj b/API.UnitTests/API.UnitTests.csproj new file mode 100644 index 000000000..7c0213d90 --- /dev/null +++ b/API.UnitTests/API.UnitTests.csproj @@ -0,0 +1,65 @@ + + + + + Debug + AnyCPU + {390999A5-A660-4E85-B1B9-6FB61842B14B} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Library + Properties + API.UnitTest + API.UnitTests + v4.8 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + ..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll + + + ..\packages\xunit.assert.2.1.0\lib\dotnet\xunit.assert.dll + + + ..\packages\xunit.extensibility.core.2.1.0\lib\dotnet\xunit.core.dll + + + ..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll + + + + + + + + + diff --git a/API.UnitTests/Properties/AssemblyInfo.cs b/API.UnitTests/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..736d51f64 --- /dev/null +++ b/API.UnitTests/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("API.UnitTests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("API.UnitTests")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("390999A5-A660-4E85-B1B9-6FB61842B14B")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/API.UnitTests/Tests.cs b/API.UnitTests/Tests.cs new file mode 100644 index 000000000..ca407f54d --- /dev/null +++ b/API.UnitTests/Tests.cs @@ -0,0 +1,15 @@ +using System; +using Xunit; + +namespace API.UnitTest +{ + public class Tests + { + [Fact] + public void Test1() + { + + Assert.True(true); + } + } +} \ No newline at end of file diff --git a/API.UnitTests/packages.config b/API.UnitTests/packages.config new file mode 100644 index 000000000..69a4ec438 --- /dev/null +++ b/API.UnitTests/packages.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/Kavita.sln b/Kavita.sln index c1f023634..ac22f11fa 100644 --- a/Kavita.sln +++ b/Kavita.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.26124.0 MinimumVisualStudioVersion = 15.0.26124.0 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "API", "API\API.csproj", "{1BC0273F-FEBE-4DA1-BC04-3A3167E4C86C}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "API.UnitTests", "API.UnitTests\API.UnitTests.csproj", "{390999A5-A660-4E85-B1B9-6FB61842B14B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -30,5 +32,17 @@ Global {1BC0273F-FEBE-4DA1-BC04-3A3167E4C86C}.Release|x64.Build.0 = Release|Any CPU {1BC0273F-FEBE-4DA1-BC04-3A3167E4C86C}.Release|x86.ActiveCfg = Release|Any CPU {1BC0273F-FEBE-4DA1-BC04-3A3167E4C86C}.Release|x86.Build.0 = Release|Any CPU + {390999A5-A660-4E85-B1B9-6FB61842B14B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {390999A5-A660-4E85-B1B9-6FB61842B14B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {390999A5-A660-4E85-B1B9-6FB61842B14B}.Debug|x64.ActiveCfg = Debug|Any CPU + {390999A5-A660-4E85-B1B9-6FB61842B14B}.Debug|x64.Build.0 = Debug|Any CPU + {390999A5-A660-4E85-B1B9-6FB61842B14B}.Debug|x86.ActiveCfg = Debug|Any CPU + {390999A5-A660-4E85-B1B9-6FB61842B14B}.Debug|x86.Build.0 = Debug|Any CPU + {390999A5-A660-4E85-B1B9-6FB61842B14B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {390999A5-A660-4E85-B1B9-6FB61842B14B}.Release|Any CPU.Build.0 = Release|Any CPU + {390999A5-A660-4E85-B1B9-6FB61842B14B}.Release|x64.ActiveCfg = Release|Any CPU + {390999A5-A660-4E85-B1B9-6FB61842B14B}.Release|x64.Build.0 = Release|Any CPU + {390999A5-A660-4E85-B1B9-6FB61842B14B}.Release|x86.ActiveCfg = Release|Any CPU + {390999A5-A660-4E85-B1B9-6FB61842B14B}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal