public void RemoveEndShouldWork() { var Arr = new int[4] { 1, 2, 5, 8 }; HW.RemoveEnd(ref Arr); Arr.Should().BeEquivalentTo(new int[] { 1, 2, 5 }); }