Exemple #1
0
        public void Init2()
        {
            var list     = FList.New(1);
            var actual   = FList.Init(list);
            var expected = FList.Empty <int>();

            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void Init1()
        {
            var list     = FList.New(1, 2, 3, 4, 5);
            var actual   = FList.Init(list);
            var expected = FList.New(1, 2, 3, 4);

            Assert.AreEqual(expected, actual);
        }
Exemple #3
0
        public void Init1String()
        {
            var list     = "12345";
            var actual   = FList.Init(list);
            var expected = "1234";

            Assert.AreEqual(expected, actual.ToString());
        }