Example #1
0
        public void Strings11()
        {
            var list     = FList.AsChars("Henry");
            var expected = "HenryVIII";

            Assert.AreEqual(expected, FList.Append(list, FList.AsChars("VIII")).ToString());
        }
Example #2
0
        public void Strings4()
        {
            var list     = FList.AsChars("Tom");
            var expected = FList.New('o', 'm');

            Assert.AreEqual(expected, FList.Tail(list));
        }
Example #3
0
        public void Strings3()
        {
            var list     = FList.AsChars("Tom");
            var expected = 'T';

            Assert.AreEqual(expected, FList.Head(list));
        }
Example #4
0
        public void NewWithString2()
        {
            var list     = FList.AsChars("Hello");
            var expected = FList.New('H', 'e', 'l', 'l', 'o');

            Assert.AreEqual(expected, list);
        }
Example #5
0
        public void NewWithString()
        {
            var list = FList.AsChars("Hello");

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

            Assert.IsTrue(FList.IsEmpty(list));
        }