From bfe5f8f35350788a04cde65f5f061dab2d7e281d Mon Sep 17 00:00:00 2001 From: Charlie Poole Date: Sun, 26 Sep 2021 14:05:11 -0700 Subject: [PATCH] Add test to verify issue 23 is not a problem --- src/tests/NonSdkProjectLoadTests.cs | 3 ++ src/tests/ProjectLoadTests.cs | 2 +- src/tests/resources/nonsdk-x86-only.csproj | 36 ++++++++++++++++++++++ src/tests/vs-project-loader.tests.csproj | 1 + 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 src/tests/resources/nonsdk-x86-only.csproj diff --git a/src/tests/NonSdkProjectLoadTests.cs b/src/tests/NonSdkProjectLoadTests.cs index ec6cc6e..8a51d53 100644 --- a/src/tests/NonSdkProjectLoadTests.cs +++ b/src/tests/NonSdkProjectLoadTests.cs @@ -76,6 +76,9 @@ namespace NUnit.Engine.Services.ProjectLoaders.Tests .WithConfig("Debug", ".bin/Debug/TestTemplatedPathsAssembly/TestTemplatedPathsAssembly.dll") .WithConfig("Release", ".bin/Release/TestTemplatedPathsAssembly/TestTemplatedPathsAssembly.dll") .WithConfig("FixedPath", "FixedPath//TestTemplatedPathsAssembly.dll"), + new ProjectData("nonsdk-x86-only.csproj") + .WithConfig("Debug", "bin/x86/Debug/DD.Net_46.Tests.dll") + .WithConfig("Release", "bin/x86/Release/DD.Net_46.Tests.dll"), new ProjectData("nonsdk-xna-project.csproj") .Named("XNAWindowsProject") .WithConfig("Debug", "bin/x86/Debug/XNAWindowsProject.exe") diff --git a/src/tests/ProjectLoadTests.cs b/src/tests/ProjectLoadTests.cs index f5f01a4..95f246b 100644 --- a/src/tests/ProjectLoadTests.cs +++ b/src/tests/ProjectLoadTests.cs @@ -45,7 +45,7 @@ namespace NUnit.Engine.Services.ProjectLoaders.Tests protected void CanLoadProject(ProjectData projectData) { - Assert.That(_loader.CanLoadFrom(projectData.ProjectName)); + Assert.That(_loader.CanLoadFrom(projectData.ProjectName), "Failed to load project"); using (TestResource file = new TestResource(projectData.ProjectName)) { diff --git a/src/tests/resources/nonsdk-x86-only.csproj b/src/tests/resources/nonsdk-x86-only.csproj new file mode 100644 index 0000000..247cbae --- /dev/null +++ b/src/tests/resources/nonsdk-x86-only.csproj @@ -0,0 +1,36 @@ + + + + + + Debug + AnyCPU + {8EDF4429-251A-416D-BB68-93F227191BCF} + Library + Properties + DD.Net_46.Tests + DD.Net_46.Tests + v4.6.2 + 512 + + 8dc73fc5 + + + true + bin\x86\Debug\ + DEBUG;TRACE + full + x86 + prompt + MinimumRecommendedRules.ruleset + + + bin\x86\Release\ + TRACE + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + + diff --git a/src/tests/vs-project-loader.tests.csproj b/src/tests/vs-project-loader.tests.csproj index 1e2b87c..8c9e22b 100644 --- a/src/tests/vs-project-loader.tests.csproj +++ b/src/tests/vs-project-loader.tests.csproj @@ -83,6 +83,7 @@ +