public async Task SqlDebugEnabled_OnGetEvaluatedPropertyValueAsync_GetsSettingFromActiveProfile() { bool activeProfileSqlDebugEnabled = true; var activeProfileOtherSettings = new Dictionary <string, object> { { LaunchProfileExtensions.SqlDebuggingProperty, activeProfileSqlDebugEnabled } }; var settingsProvider = SetupLaunchSettingsProvider(activeProfileName: "One", activeProfileOtherSettings: activeProfileOtherSettings); var provider = new ActiveLaunchProfileExtensionValueProvider(settingsProvider); var actualValue = await provider.OnGetEvaluatedPropertyValueAsync(ActiveLaunchProfileExtensionValueProvider.SqlDebuggingPropertyName, string.Empty, Mock.Of <IProjectProperties>()); Assert.Equal(expected: "true", actual: actualValue); }
public async Task AuthenticationMode_OnGetEvaluatedPropertyValueAsync_GetsModeFromActiveProfile() { string activeProfileAuthenticationMode = "Windows"; var activeProfileOtherSettings = new Dictionary <string, object> { { LaunchProfileExtensions.RemoteAuthenticationModeProperty, activeProfileAuthenticationMode } }; var settingsProvider = SetupLaunchSettingsProvider(activeProfileName: "One", activeProfileOtherSettings: activeProfileOtherSettings); var provider = new ActiveLaunchProfileExtensionValueProvider(settingsProvider); var actualValue = await provider.OnGetEvaluatedPropertyValueAsync(ActiveLaunchProfileExtensionValueProvider.AuthenticationModePropertyName, string.Empty, Mock.Of <IProjectProperties>()); Assert.Equal(expected: activeProfileAuthenticationMode, actual: actualValue); }
public async Task RemoteMachineName_OnGetEvaluatedPropertyValueAsync_GetsNameFromActiveProfile() { string activeProfileRemoteMachineName = "alphaMachine"; var activeProfileOtherSettings = new Dictionary <string, object> { { LaunchProfileExtensions.RemoteDebugMachineProperty, activeProfileRemoteMachineName } }; var settingsProvider = SetupLaunchSettingsProvider(activeProfileName: "One", activeProfileOtherSettings: activeProfileOtherSettings); var provider = new ActiveLaunchProfileExtensionValueProvider(settingsProvider); var actualValue = await provider.OnGetEvaluatedPropertyValueAsync(ActiveLaunchProfileExtensionValueProvider.RemoteDebugMachinePropertyName, string.Empty, Mock.Of <IProjectProperties>()); Assert.Equal(expected: activeProfileRemoteMachineName, actual: actualValue); }
public async Task RemoteDebugEnabled_OnGetEvaluatedPropertyValueAsync_GetsNativeDebuggingFromActiveProfile() { bool activeProfileRemoteDebugEnabled = true; var activeProfileOtherSettings = new Dictionary <string, object> { { LaunchProfileExtensions.RemoteDebugEnabledProperty, activeProfileRemoteDebugEnabled } }; var settingsProvider = SetupLaunchSettingsProvider(activeProfileName: "One", activeProfileOtherSettings: activeProfileOtherSettings); var project = UnconfiguredProjectFactory.Create(); var threadingService = IProjectThreadingServiceFactory.Create(); var provider = new ActiveLaunchProfileExtensionValueProvider(project, settingsProvider, threadingService); var actualValue = await provider.OnGetEvaluatedPropertyValueAsync(ActiveLaunchProfileExtensionValueProvider.RemoteDebugEnabledPropertyName, string.Empty, Mock.Of <IProjectProperties>()); Assert.Equal(expected: "true", actual: actualValue); }