FluentAssertions seems to fail with NullReferece exception when I try comparing two collections with nulls
    [Test]
    public void DeepWithNulls()
    {
        var l1 = new List<string> { "aaa", null };
        var l2 = new List<string> { "aaa", null };
        l1.Should().Equal(l2);
    }
Comparison works as expected on collections with no nulls.
                        
This is happening due to the fact that deep down in the collection comparison logic Fluent Assertion uses following code
in above code
expectedItemsandactualItemsare your listsNow think what will happen during second iteration when (part below) will be executed?
actualItems[index].Equals(expectedItems[index])as
actualItems[1]isnullso it throws null reference exception