56 references to AssertHelper
xunit.assert (56)
AsyncCollectionAsserts.cs (36)
38
All(
AssertHelper
.ToEnumerable(collection), action);
51
All(
AssertHelper
.ToEnumerable(collection), action);
64
AllAsync(
AssertHelper
.ToEnumerable(collection), action);
77
AllAsync(
AssertHelper
.ToEnumerable(collection), action);
90
Collection(
AssertHelper
.ToEnumerable(collection), elementInspectors);
103
CollectionAsync(
AssertHelper
.ToEnumerable(collection), elementInspectors);
115
Contains(expected,
AssertHelper
.ToEnumerable(collection));
129
Contains(expected,
AssertHelper
.ToEnumerable(collection), comparer);
141
Contains(
AssertHelper
.ToEnumerable(collection), filter);
150
Distinct(
AssertHelper
.ToEnumerable(collection), EqualityComparer<T>.Default);
162
Distinct(
AssertHelper
.ToEnumerable(collection), comparer);
174
DoesNotContain(expected,
AssertHelper
.ToEnumerable(collection));
188
DoesNotContain(expected,
AssertHelper
.ToEnumerable(collection), comparer);
200
DoesNotContain(
AssertHelper
.ToEnumerable(collection), filter);
209
Empty(
AssertHelper
.ToEnumerable(collection));
226
Equal(expected,
AssertHelper
.ToEnumerable(actual), GetEqualityComparer<T>());
243
Equal(
AssertHelper
.ToEnumerable(expected),
AssertHelper
.ToEnumerable(actual), GetEqualityComparer<T>());
262
Equal(expected,
AssertHelper
.ToEnumerable(actual), GetEqualityComparer<IEnumerable<T>>(new AssertEqualityComparerAdapter<T>(comparer)));
281
Equal(
AssertHelper
.ToEnumerable(expected),
AssertHelper
.ToEnumerable(actual), GetEqualityComparer<IEnumerable<T>>(new AssertEqualityComparerAdapter<T>(comparer)));
300
Equal(expected,
AssertHelper
.ToEnumerable(actual), AssertEqualityComparer<T>.FromComparer(comparer));
319
Equal(
AssertHelper
.ToEnumerable(expected),
AssertHelper
.ToEnumerable(actual), AssertEqualityComparer<T>.FromComparer(comparer));
328
NotEmpty(
AssertHelper
.ToEnumerable(collection));
345
NotEqual(expected,
AssertHelper
.ToEnumerable(actual), GetEqualityComparer<T>());
362
NotEqual(
AssertHelper
.ToEnumerable(expected),
AssertHelper
.ToEnumerable(actual), GetEqualityComparer<T>());
381
NotEqual(expected,
AssertHelper
.ToEnumerable(actual), GetEqualityComparer<IEnumerable<T>>(new AssertEqualityComparerAdapter<T>(comparer)));
400
NotEqual(
AssertHelper
.ToEnumerable(expected),
AssertHelper
.ToEnumerable(actual), GetEqualityComparer<IEnumerable<T>>(new AssertEqualityComparerAdapter<T>(comparer)));
419
NotEqual(expected,
AssertHelper
.ToEnumerable(actual), AssertEqualityComparer<T>.FromComparer(comparer));
438
NotEqual(
AssertHelper
.ToEnumerable(expected),
AssertHelper
.ToEnumerable(actual), AssertEqualityComparer<T>.FromComparer(comparer));
450
Single(
AssertHelper
.ToEnumerable(collection));
467
Single(
AssertHelper
.ToEnumerable(collection), predicate);
EqualityAsserts.cs (4)
277
var expectedTypeName = expectedType == null ? "" : (
AssertHelper
.IsCompilerGenerated(expectedType) ? "<generated> " : ArgumentFormatter.FormatTypeName(expectedType) + " ");
278
var actualTypeName = actualType == null ? "" : (
AssertHelper
.IsCompilerGenerated(actualType) ? "<generated> " : ArgumentFormatter.FormatTypeName(actualType) + " ");
791
var expectedTypeName = expectedType == null ? "" : (
AssertHelper
.IsCompilerGenerated(expectedType) ? "<generated> " : ArgumentFormatter.FormatTypeName(expectedType) + " ");
792
var actualTypeName = actualType == null ? "" : (
AssertHelper
.IsCompilerGenerated(actualType) ? "<generated> " : ArgumentFormatter.FormatTypeName(actualType) + " ");
EquivalenceAsserts.cs (1)
42
var ex =
AssertHelper
.VerifyEquivalence(expected, actual, strict);
Sdk\Exceptions\ContainsException.cs (2)
164
AssertHelper
.ShortenAndEncodeString(@string),
166
AssertHelper
.ShortenAndEncodeString(Assert.GuardArgumentNotNull(nameof(expectedSubString), expectedSubString))
Sdk\Exceptions\DoesNotContainException.cs (2)
194
var encodedString =
AssertHelper
.ShortenAndEncodeString(@string, indexFailurePoint, out failurePointerIndent);
206
AssertHelper
.ShortenAndEncodeString(expectedSubString)
Sdk\Exceptions\EmptyException.cs (1)
56
AssertHelper
.ShortenAndEncodeString(Assert.GuardArgumentNotNull(nameof(value), value))
Sdk\Exceptions\EndsWithException.cs (2)
50
AssertHelper
.ShortenAndEncodeStringEnd(actual),
52
AssertHelper
.ShortenAndEncodeString(expected)
Sdk\Exceptions\EqualException.cs (2)
158
var formattedExpected =
AssertHelper
.ShortenAndEncodeString(expected, expectedIndex, out expectedPointer);
159
var formattedActual =
AssertHelper
.ShortenAndEncodeString(actual, actualIndex, out actualPointer);
Sdk\Exceptions\StartsWithException.cs (2)
50
AssertHelper
.ShortenAndEncodeString(actual),
52
AssertHelper
.ShortenAndEncodeString(expected)
StringAsserts.cs (4)
543
var formattedExpected =
AssertHelper
.ShortenAndEncodeString(expectedRegexPattern);
544
var formattedActual =
AssertHelper
.ShortenAndEncodeString(actualString, match.Index, out pointerIndent);
573
var formattedExpected =
AssertHelper
.ShortenAndEncodeString(expectedRegex.ToString());
574
var formattedActual =
AssertHelper
.ShortenAndEncodeString(actualString, match.Index, out pointerIndent);