Answers for "fluent assertions should be equivalent to ignore property"

0

fluent assertions should be equivalent to ignore property

gotA.ShouldBeEquivalentTo(expectedB , config => 
  config
    .Excluding(ctx => ctx.SelectedMemberInfo.MemberType == typeof(Venue))
    .Excluding(ctx => ctx.SelectedMemberInfo.MemberType == typeof(Exhibit))
    .Excluding(ctx => ctx.SelectedMemberInfo.MemberType == typeof(Content))
    .Excluding(ctx => ctx.SelectedMemberInfo.MemberType == typeof(Survey))
    .Excluding(ctx => ctx.SelectedMemberInfo.MemberType == typeof(Media))
  );
Posted by: Guest on September-09-2021
0

fluent assertions should be equivalent to ignore property

results
.Should()
.BeEquivalentTo(expected, options => options.Excluding(ctx =>ctx.Id));
Posted by: Guest on September-09-2021

Code answers related to "fluent assertions should be equivalent to ignore property"

Browse Popular Code Answers by Language