-
-
Notifications
You must be signed in to change notification settings - Fork 539
/
IEquivalencyAssertionOptions.cs
78 lines (65 loc) · 2.92 KB
/
IEquivalencyAssertionOptions.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
using System;
using System.Collections.Generic;
namespace FluentAssertions.Equivalency
{
/// <summary>
/// Provides the run-time details of the <see cref="EquivalencyAssertionOptions{TSubject}" /> class.
/// </summary>
public interface IEquivalencyAssertionOptions
{
/// <summary>
/// Gets an ordered collection of the selection rules that are relevant given the provided context.
/// </summary>
IEnumerable<IMemberSelectionRule> GetActiveSelectionRules(IEquivalencyValidationContext context);
/// <summary>
/// Gets an ordered collection of all selection rules that have been configured.
/// </summary>
IEnumerable<IMemberSelectionRule> SelectionRules { get; }
/// <summary>
/// Gets an ordered collection of matching rules that determine which subject properties are matched with which
/// expectation properties.
/// </summary>
IEnumerable<IMemberMatchingRule> MatchingRules { get; }
/// <summary>
/// Gets a value indicating whether or not the assertion must perform a deep comparison.
/// </summary>
bool IsRecursive { get; }
/// <summary>
/// Gets a value indicating whether recursion is allowed to continue indefinitely.
/// </summary>
bool AllowInfiniteRecursion { get; }
/// <summary>
/// Gets value indicating how cyclic references should be handled. By default, it will throw an exception.
/// </summary>
CyclicReferenceHandling CyclicReferenceHandling { get; }
/// <summary>
/// Gets an ordered collection of rules that determine whether or not the order of collections is important. By default,
/// ordering is irrelevant.
/// </summary>
OrderingRuleCollection OrderingRules { get; }
/// <summary>
/// Gets value indicating how the enums should be compared.
/// </summary>
EnumEquivalencyHandling EnumEquivalencyHandling { get; }
/// <summary>
/// Gets an ordered collection of Equivalency steps how a subject is compared with the expectation.
/// </summary>
IEnumerable<IEquivalencyStep> UserEquivalencySteps { get; }
/// <summary>
/// Gets a value indicating whether the runtime type should be used rather than the declared type.
/// </summary>
bool UseRuntimeTyping { get; }
/// <summary>
/// Gets a value indicating whether properties should be considered.
/// </summary>
bool IncludeProperties { get; }
/// <summary>
/// Gets a value indicating whether fields should be considered.
/// </summary>
bool IncludeFields { get; }
/// <summary>
/// Gets a value indicating whether the <paramref name="type"/> should be treated as having value semantics.
/// </summary>
bool IsValueType(Type type);
}
}