diff options
Diffstat (limited to '')
-rw-r--r-- | tests/GlobalUsings.cs | 1 | ||||
-rw-r--r-- | tests/Locusts.Testing.csproj | 22 | ||||
-rw-r--r-- | tests/Locusts.cs | 12 |
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 |