snapshooter
snapshooter copied to clipboard
Exclude from serialize process the ignore fields
If we haven an object with ignored field e.g.:
expected.MatchSnapshot(options => options.IgnoreField("Content"));
the field "Content" should not be serialized because may have a type which is not serializable.
any movement on this?
My proposal is to create a new match option called .ExcludeField("Content"), which removes the specified field(s) from the snapshot. The IgnoreField is really only to ignore the field, but not change the snapshot output.