示例#1
0
        public void OneValue_SetToNull()
        {
            var linkedList = new RemoveElementFromLinkedList.ListElement()
            {
                Value = 1,
                Next  = null
            };

            RemoveElementFromLinkedList.Run(ref linkedList);
            linkedList.Should().BeNull();
        }
示例#2
0
 public void Null_Ignored()
 {
     RemoveElementFromLinkedList.ListElement linkedList = null;
     RemoveElementFromLinkedList.Run(ref linkedList);
     linkedList.Should().BeNull();
 }