public void IsAzureMonitorEnabled_ReturnsExpectedResult(string value, bool expected) { IEnvironment env = new TestEnvironment(); if (value != null) { env.SetEnvironmentVariable(EnvironmentSettingNames.AzureMonitorCategories, value); } Assert.Equal(expected, EnvironmentExtensions.IsAzureMonitorEnabled(env)); }