public void Verify_ToString(string name, string[] attributes, string expected) { var itemWithNameAndAttributes = new ItemWithNameAndAttributes(name, attributes); var result = itemWithNameAndAttributes.ToString(); Assert.Equal(expected, result); }
public void Verify_Constructor_PropertiesAreEqualToInput(string name, string[] attributes) { var itemWithNameAndAttributes = new ItemWithNameAndAttributes(name, new List <string>(attributes)); Assert.Equal(name, itemWithNameAndAttributes.Name); Assert.Equal(attributes, itemWithNameAndAttributes.Attributes); }
public void Verify_AttributesToParenthesesString(string name, string[] attributes, bool prependSpace, string expected) { var itemWithNameAndAttributes = new ItemWithNameAndAttributes(name, attributes); var result = itemWithNameAndAttributes.AttributesToParenthesesString(prependSpace); Assert.Equal(expected, result); }