public void SolutionPicker_picks_unity_solution() { var solutions = new[] { "unity.sln", "unity-csharp.sln" }; var solution = SolutionPicker.ChooseSolution(null, solutions); Assert.Equal("unity-csharp.sln", solution.Solution); }
public void SolutionPicker_logs_info_when_ambiguous_solutions_found() { var solutions = new[] { "unity.sln", "unity-csharp.sln", "another.sln" }; var solution = SolutionPicker.ChooseSolution(null, solutions); Assert.Null(solution.Solution); Assert.Equal("Could not determine solution file", solution.Message); }