public void NonCircularLinkedList_NoNodes_ReturnsFalse()
        {
            // Arrange
            var sut  = new CircularList <string>();
            var list = new LinkedList <string>();

            // Act
            var actual = sut.Execute(list);

            // Assert
            Assert.IsFalse(actual);
        }
        public void NonCircularLinkedList_HeadOnly_ReturnsFalse()
        {
            // Arrange
            var sut  = new CircularList <string>();
            var list = new LinkedList <string>();

            list.InsertFirst("A");

            // Act
            var actual = sut.Execute(list);

            // Assert
            Assert.IsFalse(actual);
        }
        public void CircularLinkedListTwoNodes_ReturnsTrue()
        {
            // Arrange
            var sut  = new CircularList <string>();
            var list = new LinkedList <string>();

            var a = new Node <string>("A");
            var b = new Node <string>("B");

            list.Head = a;
            a.Next    = b;
            b.Next    = a;

            // Act
            var actual = sut.Execute(list);

            // Assert
            Assert.IsTrue(actual);
        }