public void OneValue_SetToNull() { var linkedList = new RemoveElementFromLinkedList.ListElement() { Value = 1, Next = null }; RemoveElementFromLinkedList.Run(ref linkedList); linkedList.Should().BeNull(); }
public void Null_Ignored() { RemoveElementFromLinkedList.ListElement linkedList = null; RemoveElementFromLinkedList.Run(ref linkedList); linkedList.Should().BeNull(); }