aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-08-06 14:01:38 -0500
committerMatt Strapp <matt@mattstrapp.net>2024-08-06 14:01:38 -0500
commitbe1f06a4aa6d4a2ac253b33b405fe96862d3c906 (patch)
tree1a1933934e25df618352d432bac2762937dcfb2d /tests
parentFormat all documentation (diff)
downloadlocusts-be1f06a4aa6d4a2ac253b33b405fe96862d3c906.tar
locusts-be1f06a4aa6d4a2ac253b33b405fe96862d3c906.tar.gz
locusts-be1f06a4aa6d4a2ac253b33b405fe96862d3c906.tar.bz2
locusts-be1f06a4aa6d4a2ac253b33b405fe96862d3c906.tar.lz
locusts-be1f06a4aa6d4a2ac253b33b405fe96862d3c906.tar.xz
locusts-be1f06a4aa6d4a2ac253b33b405fe96862d3c906.tar.zst
locusts-be1f06a4aa6d4a2ac253b33b405fe96862d3c906.zip
Add .NET
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/GlobalUsings.cs1
-rw-r--r--tests/Locusts.Testing.csproj22
-rw-r--r--tests/Locusts.cs12
3 files changed, 35 insertions, 0 deletions
diff --git a/tests/GlobalUsings.cs b/tests/GlobalUsings.cs
new file mode 100644
index 0000000..ab67c7e
--- /dev/null
+++ b/tests/GlobalUsings.cs
@@ -0,0 +1 @@
+global using Microsoft.VisualStudio.TestTools.UnitTesting; \ No newline at end of file
diff --git a/tests/Locusts.Testing.csproj b/tests/Locusts.Testing.csproj
new file mode 100644
index 0000000..fc77ecf
--- /dev/null
+++ b/tests/Locusts.Testing.csproj
@@ -0,0 +1,22 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <TargetFramework>net8.0</TargetFramework>
+ <ImplicitUsings>enable</ImplicitUsings>
+ <Nullable>enable</Nullable>
+
+ <IsPackable>false</IsPackable>
+ <IsTestProject>true</IsTestProject>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <PackageReference Include="Microsoft.NET.Test.Sdk" Version="*-*" />
+ <PackageReference Include="MSTest.TestAdapter" Version="*-*" />
+ <PackageReference Include="MSTest.TestFramework" Version="*-*" />
+ <PackageReference Include="coverlet.collector" Version="*-*" />
+ </ItemGroup>
+
+ <ItemGroup>
+ <ProjectReference Include="..\src\Locusts.csproj" />
+ </ItemGroup>
+</Project>
diff --git a/tests/Locusts.cs b/tests/Locusts.cs
new file mode 100644
index 0000000..a220043
--- /dev/null
+++ b/tests/Locusts.cs
@@ -0,0 +1,12 @@
+namespace Locusts.Testing;
+
+[TestClass]
+public class Test
+{
+ [TestMethod]
+ public void TestLocusts()
+ {
+ Locusts.IntroduceLocusts();
+ Assert.IsTrue(1==1);
+ }
+} \ No newline at end of file