public void ValidateParameterName_Throws_IfInvalid(string name)
        {
            // Act
            ArgumentException ex = Assert.Throws <ArgumentException>(() => SlackCommand.ValidateParameterName(name));

            // Assert
            Assert.Equal(string.Format(CultureInfo.CurrentCulture, "Parameter name cannot contain ';' characters: ({0}).", name.Replace("\\\0", ";")), ex.Message);
        }
        public void ValidateParameterName_Throws_IfQuotedName(string name)
        {
            // Act
            ArgumentException ex = Assert.Throws <ArgumentException>(() => SlackCommand.ValidateParameterName(name));

            // Assert
            Assert.StartsWith(string.Format(CultureInfo.CurrentCulture, "Parameter name cannot be a quoted string: ({0}).", name), ex.Message);
        }
 public void ValidateParameterName_Accepts_ValidName(string name)
 {
     SlackCommand.ValidateParameterName(name);
 }