public void MakesNewObjects(NodeWithRandom input)
    {
        NodeWithRandom copied = ListCopier.CopyRandomList(input);

        while (input != null)
        {
            copied.Should().NotBe(input);
            input  = input.next;
            copied = copied.next;
        }
    }
 public void ReturnsNullOnEmptyInput()
 {
     ListCopier.CopyRandomList(null).Should().BeNull();
 }
    public void PreservesValues(NodeWithRandom input)
    {
        string initialListValues = input.PrintValues();

        ListCopier.CopyRandomList(input).PrintValues().Should().Be(initialListValues);
    }