Considering does not work as expected when mixing Public Fields with Non Public properties
Closed this issue · 0 comments
dupdob commented
See following example
// parameters are: public field, public property, private field, private property
var sut = new SutClass(2, 42, 4, null);
// this check fails in V 2.2.0, while it should succeed
Check.That(sut).Considering().NonPublic.Fields.
And.Public.Properties.IsEqualTo(new SutClass(3, 42, 4, sut));
It looks like comparison is made on all properties and fields, instead of NonPublic properties and Public Fields.