From bd287bffab15f9e2be6b57bddbf5f53ce56cea84 Mon Sep 17 00:00:00 2001 From: eminencegrs Date: Mon, 12 Feb 2024 21:01:00 +0100 Subject: [PATCH] (Draft) Add projects for unit tests. --- ...ignPatterns.FactoryMethod.UnitTests.csproj | 36 +++++++++++++++++++ .../DesignPatterns.Singleton.UnitTests.csproj | 4 --- DesignPatterns.sln | 14 ++++++++ .../DesignPatterns.Decorator.UnitTests.csproj | 36 +++++++++++++++++++ .../DesignPatterns.Decorator.csproj | 1 - 5 files changed, 86 insertions(+), 5 deletions(-) create mode 100644 Creational/DesignPatterns.FactoryMethod.UnitTests/DesignPatterns.FactoryMethod.UnitTests.csproj create mode 100644 Structural/DesignPatterns.Decorator.UnitTests/DesignPatterns.Decorator.UnitTests.csproj diff --git a/Creational/DesignPatterns.FactoryMethod.UnitTests/DesignPatterns.FactoryMethod.UnitTests.csproj b/Creational/DesignPatterns.FactoryMethod.UnitTests/DesignPatterns.FactoryMethod.UnitTests.csproj new file mode 100644 index 0000000..8573ed4 --- /dev/null +++ b/Creational/DesignPatterns.FactoryMethod.UnitTests/DesignPatterns.FactoryMethod.UnitTests.csproj @@ -0,0 +1,36 @@ + + + + net8.0 + enable + enable + false + true + + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/Creational/DesignPatterns.Singleton.UnitTests/DesignPatterns.Singleton.UnitTests.csproj b/Creational/DesignPatterns.Singleton.UnitTests/DesignPatterns.Singleton.UnitTests.csproj index 8ed623b..722e6f7 100644 --- a/Creational/DesignPatterns.Singleton.UnitTests/DesignPatterns.Singleton.UnitTests.csproj +++ b/Creational/DesignPatterns.Singleton.UnitTests/DesignPatterns.Singleton.UnitTests.csproj @@ -33,8 +33,4 @@ - - - - diff --git a/DesignPatterns.sln b/DesignPatterns.sln index 9288388..dac61e7 100644 --- a/DesignPatterns.sln +++ b/DesignPatterns.sln @@ -22,6 +22,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesignPatterns.Singleton.Un EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesignPatterns.FactoryMethod", "Creational\DesignPatterns.FactoryMethod\DesignPatterns.FactoryMethod.csproj", "{DAE417C1-F239-4514-9689-6466F0B52A99}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesignPatterns.FactoryMethod.UnitTests", "Creational\DesignPatterns.FactoryMethod.UnitTests\DesignPatterns.FactoryMethod.UnitTests.csproj", "{15D20D32-A0CA-4D4B-9E6F-11A8B8AED366}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesignPatterns.Decorator.UnitTests", "Structural\DesignPatterns.Decorator.UnitTests\DesignPatterns.Decorator.UnitTests.csproj", "{3942358E-6D3A-441B-ABD7-7FCB0DF988BD}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -60,6 +64,14 @@ Global {DAE417C1-F239-4514-9689-6466F0B52A99}.Debug|Any CPU.Build.0 = Debug|Any CPU {DAE417C1-F239-4514-9689-6466F0B52A99}.Release|Any CPU.ActiveCfg = Release|Any CPU {DAE417C1-F239-4514-9689-6466F0B52A99}.Release|Any CPU.Build.0 = Release|Any CPU + {15D20D32-A0CA-4D4B-9E6F-11A8B8AED366}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {15D20D32-A0CA-4D4B-9E6F-11A8B8AED366}.Debug|Any CPU.Build.0 = Debug|Any CPU + {15D20D32-A0CA-4D4B-9E6F-11A8B8AED366}.Release|Any CPU.ActiveCfg = Release|Any CPU + {15D20D32-A0CA-4D4B-9E6F-11A8B8AED366}.Release|Any CPU.Build.0 = Release|Any CPU + {3942358E-6D3A-441B-ABD7-7FCB0DF988BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3942358E-6D3A-441B-ABD7-7FCB0DF988BD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3942358E-6D3A-441B-ABD7-7FCB0DF988BD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3942358E-6D3A-441B-ABD7-7FCB0DF988BD}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(NestedProjects) = preSolution {DCE06EB6-BAB5-4573-AF67-128DBCCDB90C} = {7FF0E83F-EBEB-4103-BCD1-2F100E82FCD1} @@ -70,5 +82,7 @@ Global {658DB1C6-AC85-4E03-99C4-C79116E558F5} = {AE005ED4-5F0B-4AF9-81AE-AAE3AD6F8901} {FFB0861F-5182-40CA-BD19-33BCB0FBA4F6} = {AE005ED4-5F0B-4AF9-81AE-AAE3AD6F8901} {DAE417C1-F239-4514-9689-6466F0B52A99} = {AE005ED4-5F0B-4AF9-81AE-AAE3AD6F8901} + {15D20D32-A0CA-4D4B-9E6F-11A8B8AED366} = {AE005ED4-5F0B-4AF9-81AE-AAE3AD6F8901} + {3942358E-6D3A-441B-ABD7-7FCB0DF988BD} = {5961ADCC-5FA6-4076-A9F4-C1D3207ABE1A} EndGlobalSection EndGlobal diff --git a/Structural/DesignPatterns.Decorator.UnitTests/DesignPatterns.Decorator.UnitTests.csproj b/Structural/DesignPatterns.Decorator.UnitTests/DesignPatterns.Decorator.UnitTests.csproj new file mode 100644 index 0000000..e681684 --- /dev/null +++ b/Structural/DesignPatterns.Decorator.UnitTests/DesignPatterns.Decorator.UnitTests.csproj @@ -0,0 +1,36 @@ + + + + net8.0 + enable + enable + false + true + + + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/Structural/DesignPatterns.Decorator/DesignPatterns.Decorator.csproj b/Structural/DesignPatterns.Decorator/DesignPatterns.Decorator.csproj index 6e040cb..2f4fc77 100644 --- a/Structural/DesignPatterns.Decorator/DesignPatterns.Decorator.csproj +++ b/Structural/DesignPatterns.Decorator/DesignPatterns.Decorator.csproj @@ -5,7 +5,6 @@ net8.0 enable enable - DesignPatterns.Decorator