Method | Description | |
---|---|---|
ClearCache ( ) : void |
Reflection properties and fields are cached. By default this cache is cleared automatically after each compare.
|
|
Compare ( object object1, object object2 ) : bool |
Compare two objects of the same type to each other. Check the Differences or DifferencesString Properties for the differences. Default MaxDifferences is 1 for performance |
|
CompareObjects ( ) : System |
Set up defaults for the comparison
|
|
FindDifferences ( object expected, object actual ) : string |
Method | Description | |
---|---|---|
AddBreadCrumb ( string existing, string name, string extra, int index ) : string |
Add a breadcrumb to an existing breadcrumb
|
|
AddBreadCrumb ( string existing, string name, string extra, string index ) : string |
Add a breadcrumb to an existing breadcrumb
|
|
Compare ( object object1, object object2, string breadCrumb ) : void |
Compare two objects
|
|
CompareClass ( object object1, object object2, string breadCrumb ) : void |
Compare the properties, fields of a class
|
|
CompareEnum ( object object1, object object2, string breadCrumb ) : void |
Compare an enumeration
|
|
CompareIDictionary ( object object1, object object2, string breadCrumb ) : void |
Compare a dictionary
|
|
CompareIList ( object object1, object object2, string breadCrumb ) : void |
Compare an array or something that implements IList
|
|
CompareIndexer ( |
||
ComparePointer ( object object1, object object2, string breadCrumb ) : void |
Compare a pointer struct
|
|
CompareSimpleType ( object object1, object object2, string breadCrumb ) : void |
Compare a simple type
|
|
CompareStruct ( object object1, object object2, string breadCrumb ) : void |
Compare a struct
|
|
CompareTimespan ( object object1, object object2, string breadCrumb ) : void |
Compare a timespan struct
|
|
GetFieldInfo ( |
||
GetPropertyInfo ( |
||
IgnoredByAttribute ( |
Check if any type has attributes that should be bypassed
|
|
IsArray ( |
||
IsChildType ( |
||
IsClass ( |
||
IsEnum ( |
||
IsIDictionary ( |
||
IsIList ( |
||
IsPointer ( |
||
IsSimpleType ( |
||
IsStruct ( |
||
IsTimespan ( |
||
IsValidIndexer ( |
||
PerformCompareFields ( |
Compare the fields of a class
|
|
PerformCompareProperties ( |
Compare the properties of a class
|
|
ValidStructSubType ( |
||
cStr ( object obj ) : string |
Convert an object to a nicely formatted string
|
public Compare ( object object1, object object2 ) : bool | ||
object1 | object | |
object2 | object | |
return | bool |
public static FindDifferences ( object expected, object actual ) : string | ||
expected | object | |
actual | object | |
return | string |