예제 #1
0
        public void AddNodeAfterAndFindNode_Test()
        {
            list.AddNodeAfter(list.FindNode(2), 74);

            int actual   = list.FindNode(2).NextNode.Value;
            int expected = 74;

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void FindNodeTest_ReturnNotNull(int value)
        {
            Node actual = _twoLinkedList.FindNode(value);

            Assert.NotNull(actual);
        }