Пример #1
0
        public void getSolutionGuid_Returns_Expected_Guid()
        {
            string actualSolutionGuid   = SolutionFileParser.getSolutionGuid(testSolutionPath);
            string expectedSolutionGuid = "2ADD3674-EB3F-480D-BF17-3434E0BD5A5C".ToLower();

            Assert.AreEqual(expectedSolutionGuid, actualSolutionGuid);
        }
Пример #2
0
        public void getSolutionGuid_Returns_Null_On_Invalid_Solution_Path()
        {
            string projectPath = Path.Combine(
                testSolutionParentDir,
                "MvcMusicStore", "MvcMusicStore.csproj"
                );
            // Path exists, but not a valid solution file with file extension .sln
            string actualSolutionGuid = SolutionFileParser.getSolutionGuid(projectPath);

            Assert.AreEqual(null, actualSolutionGuid);
        }
Пример #3
0
        public void getSolutionGuid_Returns_Null_On_NonExisting_Solution_Path()
        {
            string actualSolutionGuid = SolutionFileParser.getSolutionGuid(@"C:\\Random\\Path\\Invalid\\Solution.sln");

            Assert.AreEqual(null, actualSolutionGuid);
        }