Пример #1
0
        public void GetFileListTest()
        {
            var filename         = Guid.NewGuid() + ".filelisttest";
            var expectedContents = "Hello, World!";

            // Create file
            _vstsHelper.SaveTextFile(_authentication, _projectName, _repoName, _branchName, filename, expectedContents,
                                     "Creating integration test file. ***NO_CI***", true);

            // Get list of files
            var fileList = _vstsHelper.GetFileList(_authentication, _projectName, _repoName, _branchName, "/", ".filelisttest", true);

            // Delete test file
            _vstsHelper.DeleteFile(_authentication, _projectName, _repoName, _branchName, filename, "Deleting integration test file. ***NO_CI***");

            // Compare contents
            Assert.IsTrue(fileList.FirstOrDefault(x => x.Path.Equals("/" + filename)) != null);
        }
Пример #2
0
        public void LoadMarkdownFileList()
        {
            Logger.LogMessage("Loading list of markdown files...");

            markdownFileList = vstsHelper.GetFileList(vstsAuthentication, project, repoName, branch, Path.GetDirectoryName(metadataFilename), ".md", processSubfolders);
        }