public void Last1String() { var list = "12345"; var actual = FList.Last(list); var expected = '5'; Assert.AreEqual(expected, actual); }
public void Last1() { var list = FList.New(1, 2, 3, 4, 5); var actual = FList.Last(list); var expected = 5; Assert.AreEqual(expected, actual); }
public void Last2() { var list = FList.New(1); var actual = FList.Last(list); var expected = 1; Assert.AreEqual(expected, actual); }