Exemplo n.º 1
0
 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.");
 }
Exemplo n.º 2
0
 public void AsListMultipleValues()
 {
     TopicProperty property = new TopicProperty("Name");
     property.Values.Add(new TopicPropertyValue("List, of multiple, values"));
     AssertValueListCorrect(property.AsList(), "List", "of multiple", "values");
 }