ToString() public method

public ToString ( ) : string
return string
Exemplo n.º 1
0
        public void SimpleListWithTwoElementsAndTailToString()
        {
            List list = new List(1, new List(2, 3));

            Assert.AreEqual("[1,2|3]", list.ToString());
        }
Exemplo n.º 2
0
        public void SimpleListWithTwoElementsToString()
        {
            List list = new List(1, new List(2, null));

            Assert.AreEqual("[1,2]", list.ToString());
        }
Exemplo n.º 3
0
        public void SimpleListToString()
        {
            List list = new List(1, 2);

            Assert.AreEqual("[1|2]", list.ToString());
        }