After having updated the MockQueryable package to version 6.0.0 some of my unit tests fail because .ToListAsync() now returns an empty list.
Example code:
DbSet<Sections> mockSections = sections.AsQueryable().BuildMockDbSet();
_dbContext.Sections.Returns(mockSections);
List<Section> sections = await _dbContext.Sections.ToListAsync(cancellationToken);
The last line returns an empty list with the new package version. Why?
The failed tests and the full test code can be found here