public void testToString() { DynamicPercept p = new DynamicPercept("key1", "value1"); Assert.Equals("Percept[key1==value1]", p.ToString()); p = new DynamicPercept("key1", "value1", "key2", "value2"); Assert .Equals("Percept[key1==value1, key2==value2]", p .ToString()); }
public void testToString() { DynamicPercept p = new DynamicPercept("key1", "value1"); Assert.IsInstanceOfType(p, typeof(IPercept)); Assert.AreEqual("Percept[key1==value1]", p.ToString()); p = new DynamicPercept("key1", "value1", "key2", "value2"); Assert.AreEqual("Percept[key1==value1, key2==value2]", p.ToString()); }