@@ -23,9 +23,9 @@ Is.Zero // Equivalent to Is.EqualTo(0)
23
23
## Modifiers
24
24
25
25
``` csharp
26
+ .. .AsCollection
26
27
.. .IgnoreCase
27
28
.. .IgnoreWhiteSpace // From version 4.2
28
- .. .AsCollection
29
29
.. .NoClip
30
30
.. .WithSameOffset
31
31
.. .Within (object tolerance )
@@ -37,8 +37,7 @@ Is.Zero // Equivalent to Is.EqualTo(0)
37
37
.Seconds
38
38
.Milliseconds
39
39
.Ticks
40
- .. .IgnoreCase
41
- .. .IgnoreWhiteSpace
40
+
42
41
.. .Using (IEqualityComparer comparer )
43
42
.. .Using (IComparer comparer )
44
43
.. .Using <T >(IEqualityComparer < T > comparer )
@@ -118,6 +117,8 @@ to indicate the mismatched location in both _expected_ and _actual_ values:
118
117
119
118
The ` IgnoreWhiteSpace ` can also be specified when comparing collections of strings.
120
119
120
+ The characters ignored are the same as for the C# ` Char.IsWhiteSpace ` .
121
+
121
122
## Comparing DateTimes and TimeSpans
122
123
123
124
** DateTimes** and ** TimeSpans** may be compared either with or without a tolerance. A tolerance is specified using
@@ -136,7 +137,7 @@ Assert.That(later, Is.EqualTo(now).Within(TimeSpan.FromHours(3.0));
136
137
Assert .That (later , Is .EqualTo (now ).Within (3 ).Hours );
137
138
```
138
139
139
- ## Comparing Arrays, Collections and IEnumerables
140
+ ## Comparing Arrays, Collections and IEnumerables with AsCollection
140
141
141
142
Since version 2 . 2 , NUnit has been able to compare two single - dimensioned arrays . Beginning with version 2 . 4 ,
142
143
multi - dimensioned arrays , nested arrays (arrays of arrays ) and collections may be compared . With version 2 . 5 , any
0 commit comments