From ccbf5ab2bef1e8d8b0512b83e883e7bd756b3331 Mon Sep 17 00:00:00 2001 From: David Baker Effendi Date: Fri, 24 Nov 2023 16:53:57 +0200 Subject: [PATCH] Structured test and main lib --- DotNetAstGen.Test/DotNetAstGen.Test.csproj | 24 +++++++++++++++ DotNetAstGen.Test/UnitTest1.cs | 9 ++++++ DotNetAstGen.Test/Usings.cs | 1 + DotNetAstGen.csproj | 15 ---------- DotNetAstGen.sln | 31 -------------------- DotNetAstGen/DotNetAstGen.csproj | 16 ++++++++++ {src => DotNetAstGen}/Program.cs | 0 {src => DotNetAstGen}/Utils/JsonResolver.cs | 0 {src => DotNetAstGen}/Utils/MapSerializer.cs | 0 {src => DotNetAstGen}/Utils/Utilities.cs | 0 DotNetAstGenNew.sln | 22 ++++++++++++++ test/UnitTest1.cs | 15 ---------- test/Usings.cs | 1 - test/test.csproj | 19 ------------ 14 files changed, 72 insertions(+), 81 deletions(-) create mode 100644 DotNetAstGen.Test/DotNetAstGen.Test.csproj create mode 100644 DotNetAstGen.Test/UnitTest1.cs create mode 100644 DotNetAstGen.Test/Usings.cs delete mode 100644 DotNetAstGen.csproj delete mode 100644 DotNetAstGen.sln create mode 100644 DotNetAstGen/DotNetAstGen.csproj rename {src => DotNetAstGen}/Program.cs (100%) rename {src => DotNetAstGen}/Utils/JsonResolver.cs (100%) rename {src => DotNetAstGen}/Utils/MapSerializer.cs (100%) rename {src => DotNetAstGen}/Utils/Utilities.cs (100%) create mode 100644 DotNetAstGenNew.sln delete mode 100644 test/UnitTest1.cs delete mode 100644 test/Usings.cs delete mode 100644 test/test.csproj diff --git a/DotNetAstGen.Test/DotNetAstGen.Test.csproj b/DotNetAstGen.Test/DotNetAstGen.Test.csproj new file mode 100644 index 0000000..e3e890e --- /dev/null +++ b/DotNetAstGen.Test/DotNetAstGen.Test.csproj @@ -0,0 +1,24 @@ + + + + net7.0 + enable + enable + + false + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + diff --git a/DotNetAstGen.Test/UnitTest1.cs b/DotNetAstGen.Test/UnitTest1.cs new file mode 100644 index 0000000..6cdf3d5 --- /dev/null +++ b/DotNetAstGen.Test/UnitTest1.cs @@ -0,0 +1,9 @@ +namespace DotNetAstGen.Test; + +public class UnitTest1 +{ + [Fact] + public void Test1() + { + } +} \ No newline at end of file diff --git a/DotNetAstGen.Test/Usings.cs b/DotNetAstGen.Test/Usings.cs new file mode 100644 index 0000000..8c927eb --- /dev/null +++ b/DotNetAstGen.Test/Usings.cs @@ -0,0 +1 @@ +global using Xunit; \ No newline at end of file diff --git a/DotNetAstGen.csproj b/DotNetAstGen.csproj deleted file mode 100644 index f5d7453..0000000 --- a/DotNetAstGen.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - Exe - net7.0 - enable - enable - - - - - - - - diff --git a/DotNetAstGen.sln b/DotNetAstGen.sln deleted file mode 100644 index c8b1a2e..0000000 --- a/DotNetAstGen.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.5.002.0 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotNetAstGen", "DotNetAstGen.csproj", "{AA60974C-7700-4D7C-8B43-48367C994207}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "test\test.csproj", "{B2C1DE18-DBB9-42F4-9641-7F2F92EF064C}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {AA60974C-7700-4D7C-8B43-48367C994207}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AA60974C-7700-4D7C-8B43-48367C994207}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AA60974C-7700-4D7C-8B43-48367C994207}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AA60974C-7700-4D7C-8B43-48367C994207}.Release|Any CPU.Build.0 = Release|Any CPU - {B2C1DE18-DBB9-42F4-9641-7F2F92EF064C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B2C1DE18-DBB9-42F4-9641-7F2F92EF064C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B2C1DE18-DBB9-42F4-9641-7F2F92EF064C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B2C1DE18-DBB9-42F4-9641-7F2F92EF064C}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {6AA78EF1-85D2-4845-89B5-9427FE34B7C4} - EndGlobalSection -EndGlobal diff --git a/DotNetAstGen/DotNetAstGen.csproj b/DotNetAstGen/DotNetAstGen.csproj new file mode 100644 index 0000000..d0a1ad0 --- /dev/null +++ b/DotNetAstGen/DotNetAstGen.csproj @@ -0,0 +1,16 @@ + + + + net7.0 + enable + enable + + + + + + + + + + diff --git a/src/Program.cs b/DotNetAstGen/Program.cs similarity index 100% rename from src/Program.cs rename to DotNetAstGen/Program.cs diff --git a/src/Utils/JsonResolver.cs b/DotNetAstGen/Utils/JsonResolver.cs similarity index 100% rename from src/Utils/JsonResolver.cs rename to DotNetAstGen/Utils/JsonResolver.cs diff --git a/src/Utils/MapSerializer.cs b/DotNetAstGen/Utils/MapSerializer.cs similarity index 100% rename from src/Utils/MapSerializer.cs rename to DotNetAstGen/Utils/MapSerializer.cs diff --git a/src/Utils/Utilities.cs b/DotNetAstGen/Utils/Utilities.cs similarity index 100% rename from src/Utils/Utilities.cs rename to DotNetAstGen/Utils/Utilities.cs diff --git a/DotNetAstGenNew.sln b/DotNetAstGenNew.sln new file mode 100644 index 0000000..77c76e3 --- /dev/null +++ b/DotNetAstGenNew.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetAstGen", "DotNetAstGen\DotNetAstGen.csproj", "{4DB05B27-3A8B-4EBC-A9DC-F02236F6952E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetAstGen.Test", "DotNetAstGen.Test\DotNetAstGen.Test.csproj", "{D3B633F4-76F4-4D89-86F5-1B994A329D58}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4DB05B27-3A8B-4EBC-A9DC-F02236F6952E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4DB05B27-3A8B-4EBC-A9DC-F02236F6952E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4DB05B27-3A8B-4EBC-A9DC-F02236F6952E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4DB05B27-3A8B-4EBC-A9DC-F02236F6952E}.Release|Any CPU.Build.0 = Release|Any CPU + {D3B633F4-76F4-4D89-86F5-1B994A329D58}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D3B633F4-76F4-4D89-86F5-1B994A329D58}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D3B633F4-76F4-4D89-86F5-1B994A329D58}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D3B633F4-76F4-4D89-86F5-1B994A329D58}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/test/UnitTest1.cs b/test/UnitTest1.cs deleted file mode 100644 index cd31a42..0000000 --- a/test/UnitTest1.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace test; - -public class Tests -{ - [SetUp] - public void Setup() - { - } - - [Test] - public void Test1() - { - Assert.Pass(); - } -} \ No newline at end of file diff --git a/test/Usings.cs b/test/Usings.cs deleted file mode 100644 index cefced4..0000000 --- a/test/Usings.cs +++ /dev/null @@ -1 +0,0 @@ -global using NUnit.Framework; \ No newline at end of file diff --git a/test/test.csproj b/test/test.csproj deleted file mode 100644 index a848fca..0000000 --- a/test/test.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - net7.0 - enable - enable - - false - - - - - - - - - - -