private static void AssertEmpty(ArrayLinkedList <string> target) { target.Count.Should().Be(0); AssertGetFirstThrows(target); AssertGetLastThrows(target); string[] contents = target.ToArray(); contents.Should().BeEmpty(); }
private static void AssertContent(ArrayLinkedList <string> target, string[] expectedContent) { string[] content = target.ToArray(); content.Should().Equal(expectedContent); }