Esempio n. 1
0
        public void ToLListTest()
        {
            LList <int> list = new(11, new(22, new(33, null)));

            Assert.AreEqual(new[] { 11, 22, 33 }.ToLList(), list);
            Assert.IsNull(new int[] { }.ToLList());

            Assert.AreEqual(LListM.LListFrom(11, 22, 33), list);
            Assert.IsNull(LListM.LListFrom <int>());
        }