public void AddBefore_ShouldAddElements_AtTheBeginingOfLinkedList(int[] numbers) { // Arrange var linkedList = new SimpleLinkedList(numbers[0]); var reverseNumbers = numbers.Reverse(); // Act for (var i = 1; i < numbers.Length; i++) { linkedList.AddBefore(numbers[i]); } var linkedListElements = linkedList.GetElements(); // Assert linkedListElements.ToArray().Should().BeEquivalentTo(reverseNumbers); }