public void TestGetAllTests() { new FolderContents(Task).GetAllTests(); string path = Path.Combine(Directory.GetCurrentDirectory(), Tasks, TaskName, Tests); CreateFileIn(path); IEnumerable <FileInfo> allTests = new FolderContents(Task).GetAllTests(); Assert.IsTrue(allTests.Any(file => file.Name.Equals(TestFile))); }
public void TestGetAllSolutionFiles() { DirectoryInfo directoryInfo = SolutionFolder(); CreateFileIn(directoryInfo.FullName); IEnumerable <FileInfo> allSolutionFiles = new FolderContents(Task) .GetAllSolutionFiles(Solution); Assert.IsTrue(allSolutionFiles.Any(file => file.Name.Equals(TestFile))); }