From 16a888fe9ed2863b6fb1d2fc1f380769fd0b74da Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Wed, 2 Nov 2022 20:46:15 -0500 Subject: [PATCH] chore: adding a markdown test project --- MfGames.Nitride.sln | 15 +++++++++ MfGames.Nitride.sln.DotSettings | 2 ++ .../MfGames.Nitride.Generators.csproj | 6 ++-- .../Paths/RemovePathPrefix.cs | 3 +- .../MfGames.Nitride.Markdown.Tests.csproj | 31 +++++++++++++++++++ 5 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 tests/MfGames.Nitride.Markdown.Tests/MfGames.Nitride.Markdown.Tests.csproj diff --git a/MfGames.Nitride.sln b/MfGames.Nitride.sln index 188ce25..82ad9dd 100644 --- a/MfGames.Nitride.sln +++ b/MfGames.Nitride.sln @@ -45,6 +45,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MfGames.Nitride.Slugs.Tests EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MfGames.Nitride.Temporal.Tests", "tests\MfGames.Nitride.Temporal.Tests\MfGames.Nitride.Temporal.Tests.csproj", "{0B74A4DE-4F92-44EE-8273-E5A15EAB4266}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MfGames.Nitride.Markdown.Tests", "tests\MfGames.Nitride.Markdown.Tests\MfGames.Nitride.Markdown.Tests.csproj", "{2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -274,6 +276,18 @@ Global {0B74A4DE-4F92-44EE-8273-E5A15EAB4266}.Release|x64.Build.0 = Release|Any CPU {0B74A4DE-4F92-44EE-8273-E5A15EAB4266}.Release|x86.ActiveCfg = Release|Any CPU {0B74A4DE-4F92-44EE-8273-E5A15EAB4266}.Release|x86.Build.0 = Release|Any CPU + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}.Debug|x64.ActiveCfg = Debug|Any CPU + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}.Debug|x64.Build.0 = Debug|Any CPU + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}.Debug|x86.ActiveCfg = Debug|Any CPU + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}.Debug|x86.Build.0 = Debug|Any CPU + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}.Release|Any CPU.Build.0 = Release|Any CPU + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}.Release|x64.ActiveCfg = Release|Any CPU + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}.Release|x64.Build.0 = Release|Any CPU + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}.Release|x86.ActiveCfg = Release|Any CPU + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(NestedProjects) = preSolution {D480943C-764D-4A8A-B546-642ED10586BB} = {570184FD-ECE4-4EC8-86E1-C1265E17D647} @@ -294,5 +308,6 @@ Global {2C92A626-7A14-4FDB-906B-E7FA5FF18CC1} = {47461A29-E502-4B0E-AAF5-D87C4B93AB6D} {C49E07D0-CD32-4332-90FA-07494195CAC4} = {251D9C68-34EB-439D-B167-688BCC47DA17} {0B74A4DE-4F92-44EE-8273-E5A15EAB4266} = {251D9C68-34EB-439D-B167-688BCC47DA17} + {2AAE2B69-A93D-4045-B7E6-A32ED08D0D65} = {251D9C68-34EB-439D-B167-688BCC47DA17} EndGlobalSection EndGlobal diff --git a/MfGames.Nitride.sln.DotSettings b/MfGames.Nitride.sln.DotSettings index 094c9a3..c6568f5 100644 --- a/MfGames.Nitride.sln.DotSettings +++ b/MfGames.Nitride.sln.DotSettings @@ -1371,5 +1371,7 @@ using(DataAccessAdapter dataAccessAdapter = new DataAccessAdapter(ConnectionStri True 2.0 InCSharpStatement + True + True diff --git a/src/MfGames.Nitride.Generators/MfGames.Nitride.Generators.csproj b/src/MfGames.Nitride.Generators/MfGames.Nitride.Generators.csproj index 4f66286..a5f7424 100644 --- a/src/MfGames.Nitride.Generators/MfGames.Nitride.Generators.csproj +++ b/src/MfGames.Nitride.Generators/MfGames.Nitride.Generators.csproj @@ -11,9 +11,9 @@ - - - + + + diff --git a/src/MfGames.Nitride.IO/Paths/RemovePathPrefix.cs b/src/MfGames.Nitride.IO/Paths/RemovePathPrefix.cs index 2da85e6..e4c4421 100644 --- a/src/MfGames.Nitride.IO/Paths/RemovePathPrefix.cs +++ b/src/MfGames.Nitride.IO/Paths/RemovePathPrefix.cs @@ -35,7 +35,8 @@ public partial class RemovePathPrefix : IOperation { this.validator.ValidateAndThrow(this); - return this.replacePath.WithReplacement(this.RunReplacement) + return this.replacePath + .WithReplacement(this.RunReplacement) .Run(input); } diff --git a/tests/MfGames.Nitride.Markdown.Tests/MfGames.Nitride.Markdown.Tests.csproj b/tests/MfGames.Nitride.Markdown.Tests/MfGames.Nitride.Markdown.Tests.csproj new file mode 100644 index 0000000..0efbd83 --- /dev/null +++ b/tests/MfGames.Nitride.Markdown.Tests/MfGames.Nitride.Markdown.Tests.csproj @@ -0,0 +1,31 @@ + + + + net6.0 + enable + + + + + + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + +