From 6196a4f9e3a4df30584ce459d2e476d4bbe63a86 Mon Sep 17 00:00:00 2001
From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com>
Date: Tue, 25 Nov 2025 19:00:52 +1000
Subject: [PATCH] Add SharpIDE.Application unit test project
---
Directory.Packages.props | 2 ++
SharpIDE.sln | 15 ++++++++++++
global.json | 3 +++
.../GlobalUsings.cs | 2 ++
.../SharpIDE.Application.UnitTests.csproj | 24 +++++++++++++++++++
.../UnitTest1.cs | 10 ++++++++
.../xunit.runner.json | 3 +++
7 files changed, 59 insertions(+)
create mode 100644 tests/SharpIDE.Application.UnitTests/GlobalUsings.cs
create mode 100644 tests/SharpIDE.Application.UnitTests/SharpIDE.Application.UnitTests.csproj
create mode 100644 tests/SharpIDE.Application.UnitTests/UnitTest1.cs
create mode 100644 tests/SharpIDE.Application.UnitTests/xunit.runner.json
diff --git a/Directory.Packages.props b/Directory.Packages.props
index fc20bc3..05581ac 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -8,6 +8,7 @@
+
@@ -54,6 +55,7 @@
+
diff --git a/SharpIDE.sln b/SharpIDE.sln
index 4f05fb3..5889096 100644
--- a/SharpIDE.sln
+++ b/SharpIDE.sln
@@ -48,6 +48,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
.github\workflows\create-release.yml = .github\workflows\create-release.yml
EndProjectSection
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpIDE.Application.UnitTests", "tests\SharpIDE.Application.UnitTests\SharpIDE.Application.UnitTests.csproj", "{17313240-0A0E-421E-8D33-FC7AD8669451}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -142,6 +144,18 @@ Global
{52CD8910-88A4-4978-B107-C7B6C7FC3557}.Release|x64.Build.0 = Release|Any CPU
{52CD8910-88A4-4978-B107-C7B6C7FC3557}.Release|x86.ActiveCfg = Release|Any CPU
{52CD8910-88A4-4978-B107-C7B6C7FC3557}.Release|x86.Build.0 = Release|Any CPU
+ {17313240-0A0E-421E-8D33-FC7AD8669451}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {17313240-0A0E-421E-8D33-FC7AD8669451}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {17313240-0A0E-421E-8D33-FC7AD8669451}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {17313240-0A0E-421E-8D33-FC7AD8669451}.Debug|x64.Build.0 = Debug|Any CPU
+ {17313240-0A0E-421E-8D33-FC7AD8669451}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {17313240-0A0E-421E-8D33-FC7AD8669451}.Debug|x86.Build.0 = Debug|Any CPU
+ {17313240-0A0E-421E-8D33-FC7AD8669451}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {17313240-0A0E-421E-8D33-FC7AD8669451}.Release|Any CPU.Build.0 = Release|Any CPU
+ {17313240-0A0E-421E-8D33-FC7AD8669451}.Release|x64.ActiveCfg = Release|Any CPU
+ {17313240-0A0E-421E-8D33-FC7AD8669451}.Release|x64.Build.0 = Release|Any CPU
+ {17313240-0A0E-421E-8D33-FC7AD8669451}.Release|x86.ActiveCfg = Release|Any CPU
+ {17313240-0A0E-421E-8D33-FC7AD8669451}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -155,5 +169,6 @@ Global
{D306410D-3A28-4F1B-A09B-CA10041A7C53} = {F4ED837F-888A-4D01-BCED-C360B9CE0865}
{52CD8910-88A4-4978-B107-C7B6C7FC3557} = {E239E6C6-8915-4F03-85B7-22AEAF281D14}
{2FAF7C76-F2D6-443D-B3A8-3FA5C4E267C7} = {3852B2EE-7495-4DE1-805F-C198E3A9FF0D}
+ {17313240-0A0E-421E-8D33-FC7AD8669451} = {B6835010-35FA-4C74-AB48-009FB923185D}
EndGlobalSection
EndGlobal
diff --git a/global.json b/global.json
index 0b0fe9f..d3b39bc 100644
--- a/global.json
+++ b/global.json
@@ -3,5 +3,8 @@
"version": "10.0.100",
"rollForward": "latestFeature",
"allowPrerelease": false
+ },
+ "test": {
+ "runner": "Microsoft.Testing.Platform"
}
}
diff --git a/tests/SharpIDE.Application.UnitTests/GlobalUsings.cs b/tests/SharpIDE.Application.UnitTests/GlobalUsings.cs
new file mode 100644
index 0000000..d0c09c4
--- /dev/null
+++ b/tests/SharpIDE.Application.UnitTests/GlobalUsings.cs
@@ -0,0 +1,2 @@
+global using Xunit;
+global using AwesomeAssertions;
diff --git a/tests/SharpIDE.Application.UnitTests/SharpIDE.Application.UnitTests.csproj b/tests/SharpIDE.Application.UnitTests/SharpIDE.Application.UnitTests.csproj
new file mode 100644
index 0000000..fa2f580
--- /dev/null
+++ b/tests/SharpIDE.Application.UnitTests/SharpIDE.Application.UnitTests.csproj
@@ -0,0 +1,24 @@
+
+
+
+ net10.0
+ Exe
+ enable
+ enable
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/SharpIDE.Application.UnitTests/UnitTest1.cs b/tests/SharpIDE.Application.UnitTests/UnitTest1.cs
new file mode 100644
index 0000000..0979b63
--- /dev/null
+++ b/tests/SharpIDE.Application.UnitTests/UnitTest1.cs
@@ -0,0 +1,10 @@
+namespace SharpIDE.Application.UnitTests;
+
+public class UnitTest1
+{
+ [Fact]
+ public void Test1()
+ {
+ true.Should().BeTrue();
+ }
+}
diff --git a/tests/SharpIDE.Application.UnitTests/xunit.runner.json b/tests/SharpIDE.Application.UnitTests/xunit.runner.json
new file mode 100644
index 0000000..86c7ea0
--- /dev/null
+++ b/tests/SharpIDE.Application.UnitTests/xunit.runner.json
@@ -0,0 +1,3 @@
+{
+ "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json"
+}