コード例 #1
0
ファイル: GalleryTestBase.cs プロジェクト: xklx/NuGetGallery
        protected GalleryTestBase(ITestOutputHelper testOutputHelper)
        {
            TestOutputHelper = testOutputHelper;

            // suppress SSL validation for *.cloudapp.net
            ServicePointManagerInitializer.InitializeServerCertificateValidationCallback();
        }
コード例 #2
0
 public GalleryTestFixture()
 {
     // suppress SSL validation for *.cloudapp.net
     ServicePointManagerInitializer.InitializeServerCertificateValidationCallback();
     Task.Run(async() =>
     {
         await CheckIfBaseTestPackageExistsAsync();
         await EnsureNuGetExeExistsAsync();
     }).Wait();
 }
コード例 #3
0
        public GalleryTestFixture()
        {
            // Initialize the test collection shared context.
            // Check if functional tests is enabled.
            // If not, do an assert inconclusive.
#if DEBUG
#else
            if (!EnvironmentSettings.RunFunctionalTests.Equals("True", System.StringComparison.OrdinalIgnoreCase))
            {
                throw new System.InvalidOperationException("Functional tests are disabled in the current run. Please set environment variable RunFuntionalTests to True to enable them");
            }
#endif

            // suppress SSL validation for *.cloudapp.net
            ServicePointManagerInitializer.InitializeServerCertificateValidationCallback();
            Task.Run(async() =>
            {
                await CheckIfBaseTestPackageExistsAsync();
                await EnsureNuGetExeExistsAsync();
            }).Wait();
        }