Andrei
Andrei

Reputation: 1076

FluentAssertions: Assert all object properties are different from another object

Is there any way to assert that all properties of objectA are different from all properties of objectB using FluentAssertions? objectA and objectB are instances of the same class.

.BeEquivalentTo() checks if any of the property is different. I'm looking for the same check that passes only if both objects have no equal properties and fails if at least one property is the same.

Upvotes: 0

Views: 109

Answers (1)

Dennis Doomen
Dennis Doomen

Reputation: 8909

Unfortunately not. I recommend requesting an improvement at https://github.com/fluentassertions/fluentassertions/issues

Upvotes: 0

Related Questions