public void Given_input_with_2_items() { var input = new[] { 5, 7 }; var result = input.SkipLast().ToList(); result.Count.ShouldBeEqualTo(1); result[0].ShouldBeEqualTo(input[0]); }
public void Given_input_with_1_item() { var input = new[] { 5 }; var result = input.SkipLast().ToList(); result.Count.ShouldBeEqualTo(0); }