chore: scaffold Avalonia MVVM application and test project

This commit is contained in:
yyc12345 committed 2026-10-22 15:40:12 +08:00
1 parent 2f6ce2e27c
commit bb040ef89b
15 files changed
+266

No files matched your search

+1
View File
@@ -0,0 +1 @@
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
+17
View File
@@ -0,0 +1,17 @@
namespace SongTidy.Tests;
/// <summary>
/// Contains baseline tests that verify the test project is wired to the application assembly.
/// </summary>
[TestClass]
public sealed class ProjectSmokeTests {
/// <summary>
/// Verifies that the main application assembly can be loaded from the test project.
/// </summary>
[TestMethod]
public void MainAssemblyIsReferenced() {
var assemblyName = typeof(global::SongTidy.ViewModels.MainWindowViewModel).Assembly.GetName().Name;
Assert.AreEqual("SongTidy", assemblyName);
}
}
+22
View File
@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MSTest" Version="4.0.2" />
</ItemGroup>
<ItemGroup>
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SongTidy\SongTidy.csproj" />
</ItemGroup>
</Project>