public void NewWithString() { var list = FList.AsChars("Hello"); Assert.IsFalse(FList.IsEmpty(list)); Assert.AreEqual("Hello", list.ToString()); }
public void NewHeadOnlyChar() { var list = FList.New('1'); Assert.IsFalse(FList.IsEmpty(list)); Assert.AreEqual("1", list.ToString()); }
public void NewWithHeadAndNullNullableType() { var list = FList.New <string>(null, "a", "b"); Assert.IsFalse(FList.IsEmpty(list)); Assert.AreEqual(", a, b", list.ToString()); }
public void NewWithHeadAndNull() { var list = FList.New(3, null); Assert.IsFalse(FList.IsEmpty(list)); Assert.AreEqual("3", list.ToString()); }
public void NewWithEmptyString() { var list = FList.AsChars(""); Assert.IsTrue(FList.IsEmpty(list)); }
public void NewWithNull() { var list = FList.New <int>(null); Assert.IsTrue(FList.IsEmpty(list)); }
public void Empty() { var list = FList.Empty <int>(); Assert.IsTrue(FList.IsEmpty(list)); }
public void IsEmptyWithNull() { FList.IsEmpty <int>(null); }