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