public void TestGetCurrentProjectNotFound() { var file = Path.GetPathRoot(Path.GetTempPath()); var project = VisualStudioProjectFileAdder.GetCurrentProjectFile(file); Assert.AreEqual(null, project); }
public void TestGetCurrentProject() { var file = PathUtilities.GetAdjacentFile("GenericDiffReporterTest.TestLaunchesBeyondCompareImage.approved.txt"); string currentProjectFile = Path.GetFileName(VisualStudioProjectFileAdder.GetCurrentProjectFile(file)); Assert.AreEqual("ApprovalTests.Tests.csproj", currentProjectFile); }
public void TestGetCurrentProjectNotFound() { #if __MonoCS__ var project = VisualStudioProjectFileAdder.GetCurrentProjectFile("/"); #else var project = VisualStudioProjectFileAdder.GetCurrentProjectFile("C:\\"); #endif Assert.AreEqual(null, project); }
public void TestGetCurrentProjectNotFound() { var project = VisualStudioProjectFileAdder.GetCurrentProjectFile("C:\\"); Assert.AreEqual(null, project); }