public void ConcatWithNullHead() { var tail = new[] { "second", "third" }; string head = null; var whole = MoreEnumerable.Concat(head, tail); whole.AssertSequenceEqual(null, "second", "third"); }
public void ConcatWithEmptyTailSequence() { string[] tail = { }; var head = "first"; var whole = MoreEnumerable.Concat(head, tail); whole.AssertSequenceEqual("first"); }
public void ConcatWithNonEmptyTailSequence() { var tail = new[] { "second", "third" }; var head = "first"; var whole = MoreEnumerable.Concat(head, tail); whole.AssertSequenceEqual("first", "second", "third"); }
public void ConcatIsLazyInTailSequence() { MoreEnumerable.Concat("head", new BreakingSequence <string>()); }
public void ConcatWithNullHeadSequence() { MoreEnumerable.Concat(null, "tail"); }
public void ConcatWithNullTailSequence() { MoreEnumerable.Concat("head", null); }
public void ConcatWithNullHeadSequence() { Assert.ThrowsArgumentNullException("head", () => MoreEnumerable.Concat(null, "tail")); }