Browse Source

Fixed unit tests after x86 change.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4895 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 17 years ago
parent
commit
c8dde3e1aa
  1. 16
      src/AddIns/Misc/UnitTesting/Test/NUnitConsoleExeSelectedTestFixture.cs
  2. 2
      src/AddIns/Misc/UnitTesting/Test/UnitTestCommandLineTests.cs

16
src/AddIns/Misc/UnitTesting/Test/NUnitConsoleExeSelectedTestFixture.cs

@ -42,10 +42,24 @@ namespace UnitTesting.Tests @@ -42,10 +42,24 @@ namespace UnitTesting.Tests
MockCSharpProject project = new MockCSharpProject();
UnitTestApplicationStartHelper helper = new UnitTestApplicationStartHelper();
helper.Initialize(project, null);
Assert.AreEqual(@"D:\SharpDevelop\bin\Tools\NUnit\nunit-console-dotnet2.exe", helper.UnitTestApplication);
Assert.AreEqual(@"D:\SharpDevelop\bin\Tools\NUnit\nunit-console-dotnet2-x86.exe", helper.UnitTestApplication);
}
[Test]
public void TargetCpuAnyCPUDotnet2()
{
MockCSharpProject project = new MockCSharpProject();
project.ActiveConfiguration = "Debug";
project.ActivePlatform = "AnyCPU";
project.SetProperty("PlatformTarget", "AnyCPU");
project.SetProperty("TargetFrameworkVersion", "v3.5");
UnitTestApplicationStartHelper helper = new UnitTestApplicationStartHelper();
helper.Initialize(project, null);
Assert.AreEqual(@"D:\SharpDevelop\bin\Tools\NUnit\nunit-console-dotnet2.exe", helper.UnitTestApplication);
}
[Test]
public void NUnitConsole32BitUsedWhenTargetCpuIs32BitDotnet2()
{

2
src/AddIns/Misc/UnitTesting/Test/UnitTestCommandLineTests.cs

@ -184,7 +184,7 @@ namespace UnitTesting.Tests @@ -184,7 +184,7 @@ namespace UnitTesting.Tests
FileUtility.ApplicationRootPath = @"C:\SharpDevelop";
string expectedFullCommandLine = "\"C:\\SharpDevelop\\bin\\Tools\\NUnit\\nunit-console.exe\" \"C:\\Projects\\MyTests\\MyTests.dll\" /nologo";
string expectedFullCommandLine = "\"C:\\SharpDevelop\\bin\\Tools\\NUnit\\nunit-console-x86.exe\" \"C:\\Projects\\MyTests\\MyTests.dll\" /nologo";
Assert.AreEqual(expectedFullCommandLine, helper.GetCommandLine());
}

Loading…
Cancel
Save