public void EndsWithShouldHandleNulls()
 {
     var coll = new[] { "a", "b", "c" };
     var tail = new[] { "b", null };
     Assert.False(coll.EndsWith(tail));
 }
 public void EndsWithShouldHandleListsWithSameLength()
 {
     var coll = new[] { 2, 3 };
     var tail = new[] { 2, 3 };
     Assert.True(coll.EndsWith(tail));
 }
 public void EndsWithShouldFailIfTailIsLonger()
 {
     var coll = new[] { 2, 3 };
     var tail = new[] { 2, 3, 4 };
     Assert.False(coll.EndsWith(tail));
 }
 public void EndsWithShouldHandleHappyCase()
 {
     var coll = new[] {1, 2, 3};
     var tail = new[] {2, 3};
     Assert.True(coll.EndsWith(tail));
 }
 public void EndsWithShouldFailIfTailDoesntMatch()
 {
     var coll = new[] { 1, 2, 3 };
     var tail = new[] { 2, 4 };
     Assert.False(coll.EndsWith(tail));
 }