8 instantiations of EquivalentException
xunit.assert (8)
Sdk\Exceptions\EquivalentException.cs (8)
56
new
EquivalentException
(
73
new
EquivalentException
(
98
new
EquivalentException
(
122
new
EquivalentException
(
157
new
EquivalentException
(
187
new
EquivalentException
(
222
new
EquivalentException
(
250
new
EquivalentException
(
109 references to EquivalentException
Microsoft.DotNet.XUnitAssert.Tests (69)
EquivalenceAssertsTests.cs (69)
31
Assert.IsType<
EquivalentException
>(ex);
63
Assert.IsType<
EquivalentException
>(ex);
91
Assert.IsType<
EquivalentException
>(ex);
106
Assert.IsType<
EquivalentException
>(ex);
135
Assert.IsType<
EquivalentException
>(ex);
164
Assert.IsType<
EquivalentException
>(ex);
187
Assert.IsType<
EquivalentException
>(ex);
201
Assert.IsType<
EquivalentException
>(ex);
224
Assert.IsType<
EquivalentException
>(ex);
247
Assert.IsType<
EquivalentException
>(ex);
279
Assert.IsType<
EquivalentException
>(ex);
302
Assert.IsType<
EquivalentException
>(ex);
351
Assert.IsType<
EquivalentException
>(ex);
380
Assert.IsType<
EquivalentException
>(ex);
409
Assert.IsType<
EquivalentException
>(ex);
438
Assert.IsType<
EquivalentException
>(ex);
467
Assert.IsType<
EquivalentException
>(ex);
513
Assert.IsType<
EquivalentException
>(ex);
534
Assert.IsType<
EquivalentException
>(ex);
558
Assert.IsType<
EquivalentException
>(ex);
590
Assert.IsType<
EquivalentException
>(ex);
607
Assert.IsType<
EquivalentException
>(ex);
639
Assert.IsType<
EquivalentException
>(ex);
653
Assert.IsType<
EquivalentException
>(ex);
670
Assert.IsType<
EquivalentException
>(ex);
687
Assert.IsType<
EquivalentException
>(ex);
721
Assert.IsType<
EquivalentException
>(ex);
738
Assert.IsType<
EquivalentException
>(ex);
770
Assert.IsType<
EquivalentException
>(ex);
784
Assert.IsType<
EquivalentException
>(ex);
801
Assert.IsType<
EquivalentException
>(ex);
818
Assert.IsType<
EquivalentException
>(ex);
858
Assert.IsType<
EquivalentException
>(ex);
875
Assert.IsType<
EquivalentException
>(ex);
913
Assert.IsType<
EquivalentException
>(ex);
930
Assert.IsType<
EquivalentException
>(ex);
947
Assert.IsType<
EquivalentException
>(ex);
964
Assert.IsType<
EquivalentException
>(ex);
1002
Assert.IsType<
EquivalentException
>(ex);
1019
Assert.IsType<
EquivalentException
>(ex);
1057
Assert.IsType<
EquivalentException
>(ex);
1074
Assert.IsType<
EquivalentException
>(ex);
1091
Assert.IsType<
EquivalentException
>(ex);
1108
Assert.IsType<
EquivalentException
>(ex);
1199
Assert.IsType<
EquivalentException
>(ex);
1216
Assert.IsType<
EquivalentException
>(ex);
1233
Assert.IsType<
EquivalentException
>(ex);
1250
Assert.IsType<
EquivalentException
>(ex);
1288
Assert.IsType<
EquivalentException
>(ex);
1305
Assert.IsType<
EquivalentException
>(ex);
1322
Assert.IsType<
EquivalentException
>(ex);
1339
Assert.IsType<
EquivalentException
>(ex);
1368
Assert.IsType<
EquivalentException
>(ex);
1385
Assert.IsType<
EquivalentException
>(ex);
1414
Assert.IsType<
EquivalentException
>(ex);
1431
Assert.IsType<
EquivalentException
>(ex);
1462
Assert.IsType<
EquivalentException
>(ex);
1479
Assert.IsType<
EquivalentException
>(ex);
1517
Assert.IsType<
EquivalentException
>(ex);
1554
Assert.IsType<
EquivalentException
>(ex);
1576
Assert.IsType<
EquivalentException
>(ex);
1589
Assert.IsType<
EquivalentException
>(ex);
1607
Assert.IsType<
EquivalentException
>(ex);
1640
Assert.IsType<
EquivalentException
>(ex);
1652
Assert.IsType<
EquivalentException
>(ex);
1667
Assert.IsType<
EquivalentException
>(ex);
1699
Assert.IsType<
EquivalentException
>(ex);
1728
Assert.IsType<
EquivalentException
>(ex);
1757
Assert.IsType<
EquivalentException
>(ex);
xunit.assert (40)
EquivalenceAsserts.cs (1)
42
var
ex = AssertHelper.VerifyEquivalence(expected, actual, strict);
Sdk\AssertHelper.cs (23)
369
public static
EquivalentException
? VerifyEquivalence(
381
static
EquivalentException
? VerifyEquivalence<[DynamicallyAccessedMembers(
415
return
EquivalentException
.ForExceededDepth(50, prefix);
433
:
EquivalentException
.ForMemberValueMismatch(expected, actual, prefix);
436
return
EquivalentException
.ForMemberValueMismatch(expected, actual, prefix);
444
return
EquivalentException
.ForCircularReference(string.Format(CultureInfo.CurrentCulture, "{0}.{1}", nameof(expected), prefix));
447
return
EquivalentException
.ForCircularReference(string.Format(CultureInfo.CurrentCulture, "{0}.{1}", nameof(actual), prefix));
501
static
EquivalentException
? VerifyEquivalenceDateTime(
516
:
EquivalentException
.ForMemberValueMismatch(expected, actual, prefix);
520
return
EquivalentException
.ForMemberValueMismatch(expected, actual, prefix, ex);
530
:
EquivalentException
.ForMemberValueMismatch(expected, actual, prefix);
534
return
EquivalentException
.ForMemberValueMismatch(expected, actual, prefix, ex);
548
static
EquivalentException
? VerifyEquivalenceEnumerable(
579
return
EquivalentException
.ForMissingCollectionValue(expectedValue, actualOriginalValues, prefix);
585
return
EquivalentException
.ForExtraCollectionValue(expectedValues, actualOriginalValues, actualValues, prefix);
591
static
EquivalentException
? VerifyEquivalenceFileSystemInfo(
610
return
EquivalentException
.ForMismatchedTypes(expectedType, actualType, prefix);
660
static
EquivalentException
? VerifyEquivalenceIntrinsics(
676
return result ? null :
EquivalentException
.ForMemberValueMismatch(expected, actual, prefix);
681
static
EquivalentException
? VerifyEquivalenceReference(
702
return
EquivalentException
.ForMemberListMismatch(expectedGetters.Keys, actualGetters.Keys, prefixDot);
713
return
EquivalentException
.ForMemberListMismatch(expectedGetters.Keys, actualGetters.Keys, prefixDot);
718
var
ex = VerifyEquivalence(expectedMemberValue, actualMemberValue, strict, prefixDot + kvp.Key, expectedRefs, actualRefs, depth + 1);
Sdk\Exceptions\EquivalentException.cs (16)
51
/// Creates a new instance of <see cref="
EquivalentException
"/> which shows a message that indicates
55
public static
EquivalentException
ForCircularReference(string memberName) =>
65
/// Creates a new instance of <see cref="
EquivalentException
"/> which shows a message that indicates
70
public static
EquivalentException
ForExceededDepth(
83
/// Creates a new instance of <see cref="
EquivalentException
"/> which shows a message that indicates
89
public static
EquivalentException
ForGroupingWithMismatchedValues(
111
/// Creates a new instance of <see cref="
EquivalentException
"/> which shows a message that indicates
118
public static
EquivalentException
ForMemberListMismatch(
134
/// Creates a new instance of <see cref="
EquivalentException
"/> which shows a message that indicates
143
public static
EquivalentException
ForMemberValueMismatch(
171
/// Creates a new instance of <see cref="
EquivalentException
"/> which shows a message that indicates
178
public static
EquivalentException
ForMissingCollectionValue(
200
/// Creates a new instance of <see cref="
EquivalentException
"/> which shows a message that indicates
211
public static
EquivalentException
ForExtraCollectionValue(
236
/// Creates a new instance of <see cref="
EquivalentException
"/> which shows a message that indicates
246
public static
EquivalentException
ForMismatchedTypes(