-
-
Notifications
You must be signed in to change notification settings - Fork 193
/
Copy pathICompareLogic.cs
30 lines (28 loc) · 1.09 KB
/
ICompareLogic.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
namespace KellermanSoftware.CompareNetObjects
{
/// <summary>
/// Interface for mocking
/// </summary>
public interface ICompareLogic
{
/// <summary>
/// The default configuration
/// </summary>
ComparisonConfig Config { get; set; }
/// <summary>
/// Compare two objects of the same type to each other.
/// </summary>
/// <remarks>
/// Check the Differences or DifferencesString Properties for the differences.
/// Default MaxDifferences is 1 for performance
/// </remarks>
/// <param name="expectedObject">The expected object value to compare</param>
/// <param name="actualObject">The actual object value to compare</param>
/// <returns>True if they are equal</returns>
ComparisonResult Compare(object expectedObject, object actualObject);
/// <summary>
/// Reflection properties and fields are cached. By default this cache is cleared automatically after each compare.
/// </summary>
void ClearCache();
}
}