From 498b6758bf464589284f57d8bb956c1a11dffa19 Mon Sep 17 00:00:00 2001 From: OlgunR Date: Thu, 18 Jun 2026 16:23:41 +0200 Subject: [PATCH] Add `DocumentOperator.Tests` project for unit testing Added a new test project, `DocumentOperator.Tests`, to the solution targeting .NET 8.0. Configured the project as a non-packable test project with support for nullable reference types and implicit usings. Included dependencies for `xunit`, `Microsoft.NET.Test.Sdk`, and `coverlet.collector` for testing and code coverage. Added a placeholder test class, `UnitTest1`, with a single test method, `Test1`, marked with the `[Fact]` attribute. --- .../DocumentOperator.Tests.csproj | 23 +++++++++++++++++++ DocumentOperator.Tests/UnitTest1.cs | 11 +++++++++ DocumentOperator.sln | 6 +++++ 3 files changed, 40 insertions(+) create mode 100644 DocumentOperator.Tests/DocumentOperator.Tests.csproj create mode 100644 DocumentOperator.Tests/UnitTest1.cs diff --git a/DocumentOperator.Tests/DocumentOperator.Tests.csproj b/DocumentOperator.Tests/DocumentOperator.Tests.csproj new file mode 100644 index 0000000..9c5b30a --- /dev/null +++ b/DocumentOperator.Tests/DocumentOperator.Tests.csproj @@ -0,0 +1,23 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + + + + + diff --git a/DocumentOperator.Tests/UnitTest1.cs b/DocumentOperator.Tests/UnitTest1.cs new file mode 100644 index 0000000..6d420eb --- /dev/null +++ b/DocumentOperator.Tests/UnitTest1.cs @@ -0,0 +1,11 @@ +namespace DocumentOperator.Tests +{ + public class UnitTest1 + { + [Fact] + public void Test1() + { + + } + } +} \ No newline at end of file diff --git a/DocumentOperator.sln b/DocumentOperator.sln index 7d07a10..ae35719 100644 --- a/DocumentOperator.sln +++ b/DocumentOperator.sln @@ -11,6 +11,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocumentOperator.Infrastruc EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocumentOperator.Domain", "DocumentOperator.Domain\DocumentOperator.Domain.csproj", "{B4C1C3ED-D3E8-4272-8704-2E73CEA6A0DD}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocumentOperator.Tests", "DocumentOperator.Tests\DocumentOperator.Tests.csproj", "{32D2E997-3DA7-4061-8A50-DBB34BBC3E5A}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -33,6 +35,10 @@ Global {B4C1C3ED-D3E8-4272-8704-2E73CEA6A0DD}.Debug|Any CPU.Build.0 = Debug|Any CPU {B4C1C3ED-D3E8-4272-8704-2E73CEA6A0DD}.Release|Any CPU.ActiveCfg = Release|Any CPU {B4C1C3ED-D3E8-4272-8704-2E73CEA6A0DD}.Release|Any CPU.Build.0 = Release|Any CPU + {32D2E997-3DA7-4061-8A50-DBB34BBC3E5A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {32D2E997-3DA7-4061-8A50-DBB34BBC3E5A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {32D2E997-3DA7-4061-8A50-DBB34BBC3E5A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {32D2E997-3DA7-4061-8A50-DBB34BBC3E5A}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE