We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following test should fail (different Ids), but it passes. The reason is in attempt to ignore field inside collection using LINQ.
public void Test() { var guid = Guid.NewGuid(); var expected = (Id: guid, Arr: new List<(Guid, DateTime)> { (Guid.Empty, DateTime.UtcNow) }); var actual = (Id: Guid.Empty, Arr: new List<(Guid, DateTime)> { (Guid.Empty, DateTime.UtcNow) }); var expectedObject = expected.ToExpectedObject(context => { context.UseOrdinalComparison(); context.Ignore(tuple => tuple.Arr.Select(a => a.Item2)); //context.Ignore(tuple => tuple.Arr.First().Item2); //context.Ignore(tuple => tuple.Arr.Single().Item2); }); expectedObject.ShouldMatch(actual); }
It do not fail also for First() and Single() calls (commented).
First()
Single()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following test should fail (different Ids), but it passes. The reason is in attempt to ignore field inside collection using LINQ.
It do not fail also for
First()
andSingle()
calls (commented).The text was updated successfully, but these errors were encountered: