Example #1
0
        public void Take4()
        {
            var list     = FList.New(1, 2, 3, 4, 5);
            var actual   = FList.Take(0, list);
            var expected = FList.Empty <int>();

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

            Assert.AreEqual(expected, actual);
        }
Example #3
0
        public void Take6String()
        {
            var list     = "12345";
            var actual   = FList.Take(2, list);
            var expected = "12";

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