chore: reorganize project and add test project

This commit is contained in:
yyc12345 committed 2026-10-02 21:44:40 +08:00
1 parent 93ea102d89
commit a5edad4aad
6 files changed
+45 -4

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace YKanBan.Tests;
/// <summary>
/// Smoke tests verifying that the test project is correctly wired to the
/// application project and that the test runner can discover and execute tests.
/// </summary>
[TestClass]
public class ProjectReferenceTests
{
/// <summary>
/// Verifies that a type defined in the application assembly can be
/// referenced from the test project.
/// </summary>
[TestMethod]
public void ApplicationAssemblyIsReferenceable()
{
Assert.IsNotNull(typeof(App));
}
}
+18
View File
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MSTest" Version="4.4.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\YKanBan\YKanBan.csproj" />
</ItemGroup>
</Project>