public void Should_Return_The_VSWhere_Default_Path_64Bit() { // Given var fixture = new VSWhereToolFixture(is64BitOperativeSystem: true); // When var result = fixture.Run(); // Then Assert.Equal("/Program86/Microsoft Visual Studio/Installer/vswhere.exe", result.Path.FullPath); }
public void Should_Return_The_Registered_VSWhere_If_VSWhere_Is_Registered() { // Given var fixture = new VSWhereToolFixture(is64BitOperativeSystem: true); var registeredVSWhere = fixture.FileSystem.CreateFile("/Registered/vswhere.exe"); fixture.Tools.RegisterFile(registeredVSWhere.Path); // When var result = fixture.Run(); // Then Assert.Equal(registeredVSWhere.Path.FullPath, result.Path.FullPath); }