예제 #1
0
        private static void AssertEmpty(ArrayLinkedList <string> target)
        {
            target.Count.Should().Be(0);
            AssertGetFirstThrows(target);
            AssertGetLastThrows(target);

            string[] contents = target.ToArray();
            contents.Should().BeEmpty();
        }
예제 #2
0
 private static void AssertContent(ArrayLinkedList <string> target, string[] expectedContent)
 {
     string[] content = target.ToArray();
     content.Should().Equal(expectedContent);
 }