Exemplo n.º 1
0
        public void GetHeadElementFromOneElementList_ReturnsElement()
        {
            T sampleValue = this.CreateSampleValue();

            DLList <T> list = new DLList <T>();

            list.Append(sampleValue);
            T headValue = list.GetHead();

            Assert.AreEqual(sampleValue, headValue);
        }
Exemplo n.º 2
0
        public void GetHeadElementFromEmptyList_ThrowsInvalidOperationException()
        {
            DLList <T> list = new DLList <T>();

            list.GetHead();
        }