public void ConstructStringParameterAttribute_BlankName_ExpectException() { try { var attribute = new StringParameterAttribute(string.Empty); Assert.IsNotNull(attribute); } catch (CommandLineParseException) { } catch (Exception) { Assert.Fail("Expected specific type."); } }
public void ConstructStringParameterAttribute() { StringParameterAttribute attribute = new StringParameterAttribute("NoLog"); Assert.IsFalse(attribute.AllowEmptyValues, "Allow empty values is not supported."); }