public void AddBeforeIsNotContainsTargetNodeThenAddedValueAsNewFirstNode()
        {
            var list = new ConcurrentLinkedList <int>();

            list.AddLast(10);
            var newNode = list.AddBefore(new ConcurrentLinkedListNode <int>(), 35);

            Assert.Equal(newNode, list.First);
        }
        public void AddBeforeContainsTargetNode()
        {
            var list = new ConcurrentLinkedList <int>();

            var node      = list.AddLast(10);
            var addedNode = list.AddBefore(node, 35);

            Assert.Equal(addedNode, node.Prev);
        }
        public void AddBeforeIsNotContainsNodes()
        {
            var list = new ConcurrentLinkedList <int>();

            Assert.Throws <Exception>(() => list.AddBefore(new ConcurrentLinkedListNode <int>(), 10));
        }