<PackageReference Include="NUnit" Version="4.4.0" />

PropertiesComparerConfiguration<T>

Generic version of PropertiesComparerConfiguration to allow specifiying properties using expression syntax instead of strings.

Set the AllowComparingDifferentTypes property.

Set the OnlyCompareCommonProperties property.

public PropertiesComparerConfiguration<T> Excluding(Expression<Func<T, object>>[] properties)

Set the PropertyNamesToExclude property.

public PropertiesComparerConfiguration<T> Excluding<TFrom>(Expression<Func<TFrom, object>>[] properties)

Set the PropertyNamesToExclude property.

public PropertiesComparerConfiguration<T> Map<TTo>(Expression<Func<T, object>> from, Expression<Func<TTo, object>> to)

Updates the PropertyNameMapForType property.

public PropertiesComparerConfiguration<T> Map<TFrom, TTo>(Expression<Func<TFrom, object>> from, Expression<Func<TTo, object>> to)

Updates the PropertyNameMapForType property.

public PropertiesComparerConfiguration<T> Map<TTo>(ValueTuple<Expression<Func<T, object>>, Expression<Func<TTo, object>>>[] properties)

Set the PropertyNameMapForType property.

public PropertiesComparerConfiguration<T> Map<TFrom, TTo>(ValueTuple<Expression<Func<TFrom, object>>, Expression<Func<TTo, object>>>[] properties)

Set the PropertyNameMapForType property.

public PropertiesComparerConfiguration<T> Map<TFrom>(Expression<Func<TFrom, object>> from, object value)

Updates the PropertyNameToValueMapForType property.

public PropertiesComparerConfiguration<T> Using(Expression<Func<T, object>>[] properties)

Set the PropertyNamesToUseForType property.

public PropertiesComparerConfiguration<T> Using<TFrom>(Expression<Func<TFrom, object>>[] properties)

Set the PropertyNamesToUseForType property.

public PropertiesComparerConfiguration<T> Within(object amount)

Specify a tolerance for all numeric comparisons.