From 4729656fd02cdecfd5ee2dd91d518cdac4a6f884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20LAVERGNE?= Date: Fri, 12 Apr 2024 17:54:12 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Ajout=20du=20projet=20de=20Test=20U?= =?UTF-8?q?nitaires=20(et=20fonctionnels)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/Trek-12/Tests/GlobalUsings.cs | 1 + source/Trek-12/Tests/Tests.csproj | 29 ++++++++++++++++++++++++++++ source/Trek-12/Tests/UnitTest1.cs | 9 +++++++++ source/Trek-12/Trek-12.sln | 6 ++++++ 4 files changed, 45 insertions(+) create mode 100644 source/Trek-12/Tests/GlobalUsings.cs create mode 100644 source/Trek-12/Tests/Tests.csproj create mode 100644 source/Trek-12/Tests/UnitTest1.cs diff --git a/source/Trek-12/Tests/GlobalUsings.cs b/source/Trek-12/Tests/GlobalUsings.cs new file mode 100644 index 0000000..8c927eb --- /dev/null +++ b/source/Trek-12/Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using Xunit; \ No newline at end of file diff --git a/source/Trek-12/Tests/Tests.csproj b/source/Trek-12/Tests/Tests.csproj new file mode 100644 index 0000000..2fea905 --- /dev/null +++ b/source/Trek-12/Tests/Tests.csproj @@ -0,0 +1,29 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + + + diff --git a/source/Trek-12/Tests/UnitTest1.cs b/source/Trek-12/Tests/UnitTest1.cs new file mode 100644 index 0000000..279821b --- /dev/null +++ b/source/Trek-12/Tests/UnitTest1.cs @@ -0,0 +1,9 @@ +namespace Tests; + +public class UnitTest1 +{ + [Fact] + public void Test1() + { + } +} \ No newline at end of file diff --git a/source/Trek-12/Trek-12.sln b/source/Trek-12/Trek-12.sln index 14a33fa..23e752e 100644 --- a/source/Trek-12/Trek-12.sln +++ b/source/Trek-12/Trek-12.sln @@ -9,6 +9,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Models", "Models\Models.csp EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp", "ConsoleApp\ConsoleApp.csproj", "{795F2C88-3C43-4795-9764-E52F7330888D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{383C4215-C680-4C2E-BC7E-B62F0B164370}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -29,6 +31,10 @@ Global {795F2C88-3C43-4795-9764-E52F7330888D}.Debug|Any CPU.Build.0 = Debug|Any CPU {795F2C88-3C43-4795-9764-E52F7330888D}.Release|Any CPU.ActiveCfg = Release|Any CPU {795F2C88-3C43-4795-9764-E52F7330888D}.Release|Any CPU.Build.0 = Release|Any CPU + {383C4215-C680-4C2E-BC7E-B62F0B164370}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {383C4215-C680-4C2E-BC7E-B62F0B164370}.Debug|Any CPU.Build.0 = Debug|Any CPU + {383C4215-C680-4C2E-BC7E-B62F0B164370}.Release|Any CPU.ActiveCfg = Release|Any CPU + {383C4215-C680-4C2E-BC7E-B62F0B164370}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE