public async Task WorkingDirectory_OnGetUnevaluatedPropertyValueAsync_GetsDirectoryFromActiveProfile() { string activeProfileWorkingDirectory = @"C:\delta\epsilon\phi"; var settingsProvider = SetupLaunchSettingsProvider(activeProfileName: "Two", activeProfileWorkingDirectory: activeProfileWorkingDirectory); var workingDirectoryProvider = new ActiveLaunchProfileCommonValueProvider(settingsProvider); var actualValue = await workingDirectoryProvider.OnGetUnevaluatedPropertyValueAsync(ActiveLaunchProfileCommonValueProvider.WorkingDirectoryPropertyName, string.Empty, Mock.Of <IProjectProperties>()); Assert.Equal(expected: activeProfileWorkingDirectory, actual: actualValue); }
public async Task ExecutablePath_OnGetUnevaluatedPropertyValueAsync_GetsExecutableFromActiveProfile() { string activeProfileExecutablePath = @"C:\user\bin\beta.exe"; var settingsProvider = SetupLaunchSettingsProvider(activeProfileName: "Beta", activeProfileExecutablePath: activeProfileExecutablePath); var launchProfileProvider = new ActiveLaunchProfileCommonValueProvider(settingsProvider); var actualValue = await launchProfileProvider.OnGetUnevaluatedPropertyValueAsync(ActiveLaunchProfileCommonValueProvider.ExecutablePathPropertyName, string.Empty, Mock.Of <IProjectProperties>()); Assert.Equal(expected: activeProfileExecutablePath, actual: actualValue); }
public async Task CommandLineArguments_OnGetUnevaluatedPropertyValueAsync_GetsArgumentsFromActiveProfile() { string activeProfileCommandLineArguments = "/alpaca:YES /llama:NO /vicuña:NONONO"; var settingsProvider = SetupLaunchSettingsProvider(activeProfileName: "SortOfFarmAnimals", activeProfileCommandLineArgs: activeProfileCommandLineArguments); var commandLineArgumentsProvider = new ActiveLaunchProfileCommonValueProvider(settingsProvider); var actualValue = await commandLineArgumentsProvider.OnGetUnevaluatedPropertyValueAsync(ActiveLaunchProfileCommonValueProvider.CommandLineArgumentsPropertyName, string.Empty, Mock.Of <IProjectProperties>()); Assert.Equal(expected: activeProfileCommandLineArguments, actual: actualValue); }