public void ConvertPowershellFromProperties() { // Initialize Instance var target = new ConvertFromProperties { Properties = new InArgument<Dictionary<string, string>>((env) => this.properties), OutputType = PropertiesType.PowerShell, FailBuildOnError = true, IgnoreExceptions = false, TreatWarningsAsErrors = true, LogExceptionStack = true }; // Invoke the Workflow var actual = WorkflowInvoker.Invoke(target); // Test the result Assert.AreEqual(actual, "-Property1 \"V a l u e 1\" -Property2 ~!@#$%^&*()_=+`-"); }
public void ConvertPowershellFromProperties() { // Initialize Instance var target = new ConvertFromProperties { Properties = new InArgument <Dictionary <string, string> >((env) => this.properties), OutputType = PropertiesType.PowerShell, FailBuildOnError = true, IgnoreExceptions = false, TreatWarningsAsErrors = true, LogExceptionStack = true }; // Invoke the Workflow var actual = WorkflowInvoker.Invoke(target); // Test the result Assert.AreEqual(actual, "-Property1 \"V a l u e 1\" -Property2 ~!@#$%^&*()_=+`-"); }