diff options
author | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2018-12-24 13:23:34 +0300 |
---|---|---|
committer | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2018-12-24 13:23:34 +0300 |
commit | e0375a3bef8f9b8ab38ceffe6765bfcae98780c8 (patch) | |
tree | afd590b794b647ca952b397f7e8ca66062990286 /main/tests | |
parent | d0ad46d956c882bd7db64947e7e7dc52e3ba2e0f (diff) |
[Tests] Fix BuildOutput feature toggle tests
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/Ide.Tests/MonoDevelop.Ide/BuildOutputTests.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/main/tests/Ide.Tests/MonoDevelop.Ide/BuildOutputTests.cs b/main/tests/Ide.Tests/MonoDevelop.Ide/BuildOutputTests.cs index de1fbcaa5e..568fc7aa41 100644 --- a/main/tests/Ide.Tests/MonoDevelop.Ide/BuildOutputTests.cs +++ b/main/tests/Ide.Tests/MonoDevelop.Ide/BuildOutputTests.cs @@ -190,13 +190,14 @@ namespace MonoDevelop.Ide public void FeatureTogglesAsExpected () { if (Version.Parse (BuildInfo.FullVersion) >= Version.Parse ("8.0")) { - Assert.True (BuildOutput.FeatureToggle.IsEnabled); + Assert.True (BuildOutput.IsFeatureEnabled); } else { - Assert.False (BuildOutput.FeatureToggle.IsEnabled); + Assert.False (BuildOutput.IsFeatureEnabled); - Environment.SetEnvironmentVariable ("MD_FEATURE_BUILD_OUTPUT_ENABLED", "True"); - Assert.True (BuildOutput.FeatureToggle.IsEnabled); - Environment.SetEnvironmentVariable ("MD_FEATURE_BUILD_OUTPUT_ENABLED", null); + var oldValue = Environment.GetEnvironmentVariable ("MD_FEATURES_ENABLED"); + Environment.SetEnvironmentVariable ("MD_FEATURES_ENABLED", "IdeBuildOutputView"); + Assert.True (BuildOutput.IsFeatureEnabled); + Environment.SetEnvironmentVariable ("MD_FEATURES_ENABLED", oldValue); } } } |