Esempio n. 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();
        }
Esempio n. 2
0
 private static void AssertContent(ArrayLinkedList <string> target, string[] expectedContent)
 {
     string[] content = target.ToArray();
     content.Should().Equal(expectedContent);
 }