Add SharpIDE.Application unit test project
This commit is contained in:
2
tests/SharpIDE.Application.UnitTests/GlobalUsings.cs
Normal file
2
tests/SharpIDE.Application.UnitTests/GlobalUsings.cs
Normal file
@@ -0,0 +1,2 @@
|
||||
global using Xunit;
|
||||
global using AwesomeAssertions;
|
||||
@@ -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>
|
||||
10
tests/SharpIDE.Application.UnitTests/UnitTest1.cs
Normal file
10
tests/SharpIDE.Application.UnitTests/UnitTest1.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace SharpIDE.Application.UnitTests;
|
||||
|
||||
public class UnitTest1
|
||||
{
|
||||
[Fact]
|
||||
public void Test1()
|
||||
{
|
||||
true.Should().BeTrue();
|
||||
}
|
||||
}
|
||||
3
tests/SharpIDE.Application.UnitTests/xunit.runner.json
Normal file
3
tests/SharpIDE.Application.UnitTests/xunit.runner.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"$schema": "https://xunit.net/schema/current/xunit.runner.schema.json"
|
||||
}
|
||||
Reference in New Issue
Block a user