ToString() public method

public ToString ( ) : string
return string
Ejemplo n.º 1
0
        public void TupleWithAtomToString()
        {
            Tuple tuple = new Tuple(new object[] { 1, new Atom("atom"), 3 });

            Assert.AreEqual("{1,atom,3}", tuple.ToString());
        }
Ejemplo n.º 2
0
        public void TupleWithVariableToString()
        {
            Tuple tuple = new Tuple(new object[] { 1, new Variable("X"), 3 });

            Assert.AreEqual("{1,X,3}", tuple.ToString());
        }
Ejemplo n.º 3
0
        public void SimpleTupleToString()
        {
            Tuple tuple = new Tuple(new object[] { 1, 2, 3 });

            Assert.AreEqual("{1,2,3}", tuple.ToString());
        }