public void MapListItemInInputList(NonEmptyList <object> list, Func <object, object> proc) => list.Map(proc).ListRef(list.Length - 1) .Should().Be(proc(list.ListRef(list.Length - 1)));
public void ShiftOriginalFirstItemWhenItemIsInsertedAtHead(NonEmptyList <object> list, object item) => list.InsertAt(0, item).ListRef(1) .Should().Be(list.ListRef(0));
public void HaveSameLastItemAsSecondInputArray(List <object> list1, NonEmptyList <object> list2) => list1.Append(list2).ListRef(list1.Length + list2.Length - 1) .Should().Be(list2.ListRef(list2.Length - 1));
public void ContainFirstItemOfSecondInputArray(List <object> list1, NonEmptyList <object> list2) => list1.Append(list2).ListRef(list1.Length) .Should().Be(list2.ListRef(0));
public void ContainLastItemOfFirstInputArray(NonEmptyList <object> list1, List <object> list2) => list1.Append(list2).ListRef(list1.Length - 1) .Should().Be(list1.ListRef(list1.Length - 1));
public void HaveSameFirstItemAsFirstInputArray(NonEmptyList <object> list1, List <object> list2) => list1.Append(list2).ListRef(0) .Should().Be(list1.ListRef(0));