public async Task LocalDebuggerCommand_ExistingCommand_ReturnsUnmodified(string existingCommand) { var properties = IProjectPropertiesFactory.CreateWithPropertyAndValue(WindowsLocalDebugger.LocalDebuggerCommandProperty, existingCommand); var provider = new LocalDebuggerCommandValueProvider(); Assert.Equal(existingCommand, await provider.OnGetEvaluatedPropertyValueAsync(existingCommand, properties)); }
public async Task LocalDebuggerCommand_EmptyCommand_ReturnsDotnet() { var properties = IProjectPropertiesFactory.CreateWithPropertiesAndValues(new System.Collections.Generic.Dictionary <string, string>() { { WindowsLocalDebugger.LocalDebuggerCommandProperty, "" }, { WindowsLocalDebugger.DotnetPathProperty, "dotnet.exe" } }); var provider = new LocalDebuggerCommandValueProvider(); Assert.Equal("dotnet.exe", await provider.OnGetEvaluatedPropertyValueAsync(string.Empty, properties)); }