public void Strings11() { var list = FList.AsChars("Henry"); var expected = "HenryVIII"; Assert.AreEqual(expected, FList.Append(list, FList.AsChars("VIII")).ToString()); }
public void Strings4() { var list = FList.AsChars("Tom"); var expected = FList.New('o', 'm'); Assert.AreEqual(expected, FList.Tail(list)); }
public void Strings3() { var list = FList.AsChars("Tom"); var expected = 'T'; Assert.AreEqual(expected, FList.Head(list)); }
public void NewWithString2() { var list = FList.AsChars("Hello"); var expected = FList.New('H', 'e', 'l', 'l', 'o'); Assert.AreEqual(expected, list); }
public void NewWithString() { var list = FList.AsChars("Hello"); Assert.IsFalse(FList.IsEmpty(list)); Assert.AreEqual("Hello", list.ToString()); }
public void NewWithEmptyString() { var list = FList.AsChars(""); Assert.IsTrue(FList.IsEmpty(list)); }