コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }