Exemplo n.º 1
0
 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]);
 }
Exemplo n.º 2
0
 public void Given_input_with_1_item()
 {
     var input = new[] { 5 };
     var result = input.SkipLast().ToList();
     result.Count.ShouldBeEqualTo(0);
 }