<chore> + 增加测试项目

This commit is contained in:
2022-12-13 14:28:03 +08:00
parent 750545c2d0
commit e74157ec78
6 changed files with 42 additions and 10 deletions

13
tests/TestGet.cs Normal file
View File

@ -0,0 +1,13 @@
namespace Dot.Tests;
public class TestGet
{
[SetUp]
public void Setup() { }
[Test]
public void Test1()
{
Assert.Pass();
}
}

1
tests/Usings.cs Normal file
View File

@ -0,0 +1 @@
global using NUnit.Framework;

15
tests/tests.csproj Normal file
View File

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net7.0-windows;net7.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<RootNamespace>Dot.Tests</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2"/>
<PackageReference Include="NUnit" Version="3.13.3"/>
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1"/>
<PackageReference Include="NUnit.Analyzers" Version="3.3.0"/>
<PackageReference Include="coverlet.collector" Version="3.1.2"/>
</ItemGroup>
</Project>