Add SharpIDE.Application unit test project

This commit is contained in:
Matt Parker
2025-11-25 19:00:52 +10:00
parent 69a3787076
commit 6196a4f9e3
7 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
global using Xunit;
global using AwesomeAssertions;

View File

@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<OutputType>Exe</OutputType>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
<!--
Microsoft Testing Platform docs
https://xunit.net/docs/getting-started/v3/microsoft-testing-platform
-->
</PropertyGroup>
<ItemGroup>
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="AwesomeAssertions" />
<PackageReference Include="xunit.v3.mtp-v2" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,10 @@
namespace SharpIDE.Application.UnitTests;
public class UnitTest1
{
[Fact]
public void Test1()
{
true.Should().BeTrue();
}
}

View File

@@ -0,0 +1,3 @@
{
"$schema": "https://xunit.net/schema/current/xunit.runner.schema.json"
}