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