public async Task LaunchTarget_OnSetPropertyValueAsync_SetsTargetInActiveProfile() { string activeProfileLaunchTarget = "GammaCommand"; var settingsProvider = SetupLaunchSettingsProvider( activeProfileName: "Gamma", activeProfileLaunchTarget, updateLaunchSettingsCallback: s => { activeProfileLaunchTarget = s.ActiveProfile !.CommandName; }); var project = UnconfiguredProjectFactory.Create(); var threadingService = IProjectThreadingServiceFactory.Create(); var launchProfileProvider = new LaunchTargetValueProvider(project, settingsProvider, threadingService); await launchProfileProvider.OnSetPropertyValueAsync(string.Empty, "NewCommand", Mock.Of <IProjectProperties>()); Assert.Equal(expected: "NewCommand", actual: activeProfileLaunchTarget); }