public void NamedParameter_ToString_WhenQuoteOptionsIsSetToNoQuote_ValueIsNotQuoted() { var param = new PowerShellNamedParameter("name", "test", ParameterQuoteOptions.NoQuotes); Assert.AreEqual("-name test", param.ToString()); }
public void NamedParameter_ToString_WhenQuoteOptionsIsSetToQuote_WrapsValueInDoubleQuotes() { var param = new PowerShellNamedParameter("name", "test", ParameterQuoteOptions.Quote); Assert.AreEqual("-name \"\"\"test\"\"\"", param.ToString()); }