aboutsummaryrefslogtreecommitdiff
path: root/API_Tests
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-08 10:54:40 +0200
committertranstrike <transtrike@gmail.com>2020-12-08 10:54:40 +0200
commit0c79f396cad64042ae123b81d0bc412e2dddc924 (patch)
tree95e3e857551b125108524dc71f6bc6e671575927 /API_Tests
parentfa0b0e992d363f41bdb8cda00ef59c0142c97246 (diff)
downloadDevHive-0c79f396cad64042ae123b81d0bc412e2dddc924.tar
DevHive-0c79f396cad64042ae123b81d0bc412e2dddc924.tar.gz
DevHive-0c79f396cad64042ae123b81d0bc412e2dddc924.zip
Testing projects added and referenced
Diffstat (limited to 'API_Tests')
-rw-r--r--API_Tests/API_Tests.code-workspace19
-rw-r--r--API_Tests/API_Tests.csproj21
-rw-r--r--API_Tests/UnitTest1.cs16
3 files changed, 56 insertions, 0 deletions
diff --git a/API_Tests/API_Tests.code-workspace b/API_Tests/API_Tests.code-workspace
new file mode 100644
index 0000000..875e3c8
--- /dev/null
+++ b/API_Tests/API_Tests.code-workspace
@@ -0,0 +1,19 @@
+{
+ "folders": [
+ {
+ "path": "."
+ }
+ ],
+ "settings": {
+ "files.exclude": {
+ "**/.vscode": true,
+ "**/bin": true,
+ "**/obj": true,
+ ".gitignore" : true,
+ "**/README.md" : true,
+ "**/LICENSE" : true,
+ "**/Properties" : true,
+ "**/*.code-workspace" : true
+ }
+ }
+} \ No newline at end of file
diff --git a/API_Tests/API_Tests.csproj b/API_Tests/API_Tests.csproj
new file mode 100644
index 0000000..f5422e2
--- /dev/null
+++ b/API_Tests/API_Tests.csproj
@@ -0,0 +1,21 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <TargetFramework>net5.0</TargetFramework>
+
+ <IsPackable>false</IsPackable>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
+ <PackageReference Include="MSTest.TestAdapter" Version="2.1.1" />
+ <PackageReference Include="MSTest.TestFramework" Version="2.1.1" />
+ <PackageReference Include="coverlet.collector" Version="1.3.0" />
+ </ItemGroup>
+
+ <ItemGroup>
+ <ProjectReference Include="..\API\API.csproj" />
+ <ProjectReference Include="..\Models\Models.csproj" />
+ </ItemGroup>
+
+</Project>
diff --git a/API_Tests/UnitTest1.cs b/API_Tests/UnitTest1.cs
new file mode 100644
index 0000000..89f28c2
--- /dev/null
+++ b/API_Tests/UnitTest1.cs
@@ -0,0 +1,16 @@
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Models.Classes;
+
+namespace API_Tests
+{
+ [TestClass]
+ public class UnitTest1
+ {
+ [TestMethod]
+ public void TestMethod1()
+ {
+ Test test = new Test();
+ test.TestMe();
+ }
+ }
+}