Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x.ShouldBeEquivalentTo(y, opts => opts.Excluding(si => !si.PropertyInfo.CanWrite));
- x.ShouldBeEquivalentTo(y, ExcludeProperties);
- private EquivalencyAssertionOptions<xx> ExcludeProperties(EquivalencyAssertionOptions<xx> options)
- {
- options.Excluding(t => t.CeOperator);
- options.Excluding(t => t.CeOperatorName);
- options.Excluding(t => t.Status);
- options.Excluding(t => t.IsOperational);
- return options;
- }
- x.ShouldBeEquivalentTo(y, opts => opts.Excluding(si => !si.PropertyInfo.CanWrite).Excluding(si => si.SomeOtherProperty));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement