PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.TypeEqualityTester Class Reference

Tests shape equality between two types (YMMV) More...

Public Member Functions

 TypeEqualityTester (Type master, Type compare)
 Creates a new TypeEqualityCTester with the two types to test.
bool AreDeepEquivalent ()
 Performs a new Deep Equivalence test.

Properties

IEnumerable< string > Errors [get]
 Provides a read-only collection of the errors encountered during the last comparison operation.
bool SubMatch [get, set]
 Allow sub-matching: when True, the comparison type can contain more properties than the master as long as all master properties are matched.
bool AllowAssignmentEquivalence [get, set]
 Recognises properties on the comparison type to which the master property can be assigned as being equivalent.

Detailed Description

Tests shape equality between two types (YMMV)

Constructor & Destructor Documentation

◆ TypeEqualityTester()

PeanutButter.Utils.TypeEqualityTester.TypeEqualityTester ( Type master,
Type compare )

Creates a new TypeEqualityCTester with the two types to test.

Parameters
masterMaster type
compareComparison type

Member Function Documentation

◆ AreDeepEquivalent()

bool PeanutButter.Utils.TypeEqualityTester.AreDeepEquivalent ( )

Performs a new Deep Equivalence test.

Returns

The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.Utils/TypeEqualityTester.cs