public void CommandInferRegionFromDefaults() { var fullPath = Path.GetFullPath("../TestFunction"); var command = new DeployFunctionCommand(new ConsoleToolLogger(), fullPath, new string[0]); Assert.Equal("us-east-2", command.GetStringValueOrDefault(command.Region, DefinedCommandOptions.ARGUMENT_AWS_REGION, true)); }
public void CommandInferRegionFromDefaults() { var command = new DeployFunctionCommand(new ConsoleToolLogger(), GetTestProjectPath(), new string[0]); Assert.Equal("us-east-2", command.GetStringValueOrDefault(command.Region, CommonDefinedCommandOptions.ARGUMENT_AWS_REGION, true)); }