示例#1
0
        public void PublishSymbolApiIsCalledTest()
        {
            var path = TestInputs.GetFullPath("Symbols");

            string[] fileEntries           = Directory.GetFiles(path);
            var      feedConfigsForSymbols = new HashSet <TargetFeedConfig>();

            feedConfigsForSymbols.Add(new TargetFeedConfig(
                                          TargetFeedContentType.Symbols,
                                          TargetUrl,
                                          FeedType.AzureStorageFeed,
                                          SymWebToken,
                                          string.Empty,
                                          AssetSelection.All,
                                          isolated: true,
                                          @internal: false,
                                          allowOverwrite: true,
                                          SymbolTargetType.SymWeb));
            Assert.True(PublishSymbolsHelper.PublishAsync(
                            log: null,
                            symbolServerPath: path,
                            personalAccessToken: SymWebToken,
                            inputPackages: fileEntries,
                            inputFiles: fileEntries,
                            packageExcludeFiles: null,
                            expirationInDays: 365,
                            convertPortablePdbsToWindowsPdbs: false,
                            publishSpecialClrFiles: false,
                            pdbConversionTreatAsWarning: null,
                            treatPdbConversionIssuesAsInfo: false,
                            dryRun: false,
                            timer: false,
                            verboseLogging: false).IsCompleted);
        }
示例#2
0
        public void PublishSymbolApiIsCalledTest()
        {
            var path = TestInputs.GetFullPath("Symbols");

            string[] fileEntries           = Directory.GetFiles(path);
            var      feedConfigsForSymbols = new HashSet <TargetFeedConfig>();

            feedConfigsForSymbols.Add(new TargetFeedConfig(
                                          TargetFeedContentType.Symbols,
                                          TargetUrl,
                                          FeedType.AzureStorageFeed,
                                          SymWebToken,
                                          string.Empty,
                                          AssetSelection.All,
                                          isolated: true,
                                          @internal: false,
                                          allowOverwrite: true,
                                          SymbolTargetType.SymWeb));
            Assert.True(PublishSymbolsHelper.PublishAsync(null,
                                                          path,
                                                          SymWebToken,
                                                          fileEntries,
                                                          fileEntries,
                                                          null,
                                                          365,
                                                          false,
                                                          false,
                                                          null,
                                                          false,
                                                          false,
                                                          false).IsCompleted);
        }