public void Should_Get_Correct_Path_To_MSBuild_Version_35(MSBuildToolVersion version, PlatformTarget target, bool is64BitOperativeSystem, string expected) { // Given var fixture = new MSBuildRunnerFixture(is64BitOperativeSystem, true); fixture.Settings.ToolVersion = version; fixture.Settings.PlatformTarget = target; // When fixture.Run(); // Then fixture.AssertReceivedFilePath(expected); }
public void Should_Return_The_Highest_MSBuild_Version_If_Tool_Version_Is_Set_To_Default() { // Given var existingToolPaths = new DirectoryPath[] { "/Windows/Microsoft.NET/Framework64/v4.0.30319", "/Windows/Microsoft.NET/Framework64/v2.0.50727" }; var fixture = new MSBuildRunnerFixture(existingToolPaths); fixture.Settings.PlatformTarget = PlatformTarget.x64; fixture.Settings.ToolVersion = MSBuildToolVersion.Default; // When fixture.Run(); // Then fixture.AssertReceivedFilePath("/Windows/Microsoft.NET/Framework64/v4.0.30319/MSBuild.exe"); }