Example #1
0
        public void NewWithString()
        {
            var list = FList.AsChars("Hello");

            Assert.IsFalse(FList.IsEmpty(list));
            Assert.AreEqual("Hello", list.ToString());
        }
Example #2
0
        public void NewHeadOnlyChar()
        {
            var list = FList.New('1');

            Assert.IsFalse(FList.IsEmpty(list));
            Assert.AreEqual("1", list.ToString());
        }
Example #3
0
        public void NewWithHeadAndNullNullableType()
        {
            var list = FList.New <string>(null, "a", "b");

            Assert.IsFalse(FList.IsEmpty(list));
            Assert.AreEqual(", a, b", list.ToString());
        }
Example #4
0
        public void NewWithHeadAndNull()
        {
            var list = FList.New(3, null);

            Assert.IsFalse(FList.IsEmpty(list));
            Assert.AreEqual("3", list.ToString());
        }
Example #5
0
        public void NewWithEmptyString()
        {
            var list = FList.AsChars("");

            Assert.IsTrue(FList.IsEmpty(list));
        }
Example #6
0
        public void NewWithNull()
        {
            var list = FList.New <int>(null);

            Assert.IsTrue(FList.IsEmpty(list));
        }
Example #7
0
        public void Empty()
        {
            var list = FList.Empty <int>();

            Assert.IsTrue(FList.IsEmpty(list));
        }
Example #8
0
 public void IsEmptyWithNull()
 {
     FList.IsEmpty <int>(null);
 }