예제 #1
0
        // ReSharper restore StringLiteralTypo
        // ReSharper restore CommentTypo

        /// <summary>
        /// Checks that run is performed under continuous integration.
        /// </summary>
        public static bool RunsUnderContinuousIntegration() =>
        EnvironmentHelpers.HasAnyEnvironmentVariable(WellKnownCiVariables.ToArray());
예제 #2
0
 public static void TestEnvironmentVariables()
 {
     Assert.True(EnvironmentHelpers.HasAnyEnvironmentVariable("Temp"));
     Assert.True(EnvironmentHelpers.HasAnyEnvironmentVariable("tMp"));
     Assert.False(EnvironmentHelpers.HasAnyEnvironmentVariable("StringThatShouldNotBeUsedAsEnvVariable"));
 }