Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        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());
        }