public void AsListSingleValue() { TopicProperty property = new TopicProperty("Name"); property.Values.Add(new TopicPropertyValue("Single rawValue")); Assert.AreEqual(1, property.AsList().Count); Assert.AreEqual("Single rawValue", property.AsList()[0], "Checking that single rawValue is returned intact."); }
public void AsListMultipleValues() { TopicProperty property = new TopicProperty("Name"); property.Values.Add(new TopicPropertyValue("List, of multiple, values")); AssertValueListCorrect(property.AsList(), "List", "of multiple", "values"); }