public void TestGetCurrentProjectNotFound()
        {
            var file    = Path.GetPathRoot(Path.GetTempPath());
            var project = VisualStudioProjectFileAdder.GetCurrentProjectFile(file);

            Assert.AreEqual(null, project);
        }
Beispiel #2
0
        public void TestGetCurrentProject()
        {
            var    file = PathUtilities.GetAdjacentFile("GenericDiffReporterTest.TestLaunchesBeyondCompareImage.approved.txt");
            string currentProjectFile = Path.GetFileName(VisualStudioProjectFileAdder.GetCurrentProjectFile(file));

            Assert.AreEqual("ApprovalTests.Tests.csproj", currentProjectFile);
        }
Beispiel #3
0
        public void TestGetCurrentProjectNotFound()
        {
#if __MonoCS__
            var project = VisualStudioProjectFileAdder.GetCurrentProjectFile("/");
#else
            var project = VisualStudioProjectFileAdder.GetCurrentProjectFile("C:\\");
#endif

            Assert.AreEqual(null, project);
        }
Beispiel #4
0
        public void TestGetCurrentProjectNotFound()
        {
            var project = VisualStudioProjectFileAdder.GetCurrentProjectFile("C:\\");

            Assert.AreEqual(null, project);
        }