5 instantiations of EqualException
xunit.assert (5)
Sdk\Exceptions\EqualException.cs (5)
110
return new
EqualException
("Assert.Equal() Failure: " + error.Message);
128
return new
EqualException
(message, error);
180
return new
EqualException
(message);
248
return new
EqualException
(message);
345
return new
EqualException
(
205 references to EqualException
Microsoft.AspNetCore.Analyzer.Testing (2)
Assert.cs (2)
21
throw
EqualException
.ForMismatchedValues(
33
throw
EqualException
.ForMismatchedValues(
Microsoft.AspNetCore.InternalTesting (1)
Logging\LogValuesAssert.cs (1)
47
throw
EqualException
.ForMismatchedValues(
Microsoft.AspNetCore.InternalTesting.Tests (4)
LogValuesAssertTest.cs (4)
119
var
equalException = Assert.Throws<
EqualException
>(
207
var
equalException = Assert.Throws<
EqualException
>(
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
MediaTypeAssert.cs (2)
35
throw
EqualException
.ForMismatchedValues(left.ToString(), right.ToString());
42
throw
EqualException
.ForMismatchedValues(left.ToString(), right.ToString());
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (6)
XmlAssert.cs (1)
32
throw
EqualException
.ForMismatchedValues(
XmlAssertTest.cs (5)
20
var
equalException = Assert.Throws<
EqualException
>(() => XmlAssert.Equal(input1, input2));
72
Assert.Throws<
EqualException
>(() => XmlAssert.Equal(input1, input2));
113
var
equalException = Assert.Throws<
EqualException
>(() => XmlAssert.Equal(expected, actual));
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Infrastructure\HttpClientExtensions.cs (1)
52
throw
EqualException
.ForMismatchedValues(expectedStatusCode, response.StatusCode, $"Expected status code {expectedStatusCode}. Actual {response.StatusCode}. Response Content:" + Environment.NewLine + responseContent);
src\Mvc\Mvc.Formatters.Xml\test\XmlAssert.cs (1)
32
throw
EqualException
.ForMismatchedValues(
Microsoft.DotNet.XUnitAssert.Tests (115)
Asserts\AsyncCollectionAssertsTests.cs (8)
648
Assert.IsType<
EqualException
>(ex);
670
Assert.IsType<
EqualException
>(ex);
776
Assert.IsType<
EqualException
>(ex);
801
Assert.IsType<
EqualException
>(ex);
877
Assert.IsType<
EqualException
>(ex);
931
Assert.IsType<
EqualException
>(ex);
982
Assert.IsType<
EqualException
>(ex);
1044
Assert.IsType<
EqualException
>(ex);
Asserts\CollectionAssertsTests.cs (18)
762
Assert.IsType<
EqualException
>(ex);
779
Assert.IsType<
EqualException
>(ex);
851
Assert.IsType<
EqualException
>(ex);
919
Assert.IsType<
EqualException
>(ex);
928
Assert.IsType<
EqualException
>(ex);
1075
Assert.IsType<
EqualException
>(ex);
1090
Assert.IsType<
EqualException
>(ex);
1155
Assert.IsType<
EqualException
>(ex);
1236
Assert.IsType<
EqualException
>(ex);
1289
Assert.IsType<
EqualException
>(ex);
1330
Assert.IsType<
EqualException
>(ex);
1352
Assert.IsType<
EqualException
>(ex);
1390
Assert.IsType<
EqualException
>(ex);
1451
Assert.IsType<
EqualException
>(ex);
1574
Assert.IsType<
EqualException
>(ex);
1627
Assert.IsType<
EqualException
>(ex);
1645
Assert.IsType<
EqualException
>(ex);
1662
Assert.IsType<
EqualException
>(ex);
Asserts\EqualityAssertsTests.cs (69)
65
Assert.IsType<
EqualException
>(ex);
84
Assert.IsType<
EqualException
>(ex);
117
Assert.IsType<
EqualException
>(ex);
141
Assert.IsType<
EqualException
>(ex);
164
Assert.IsType<
EqualException
>(ex);
202
Assert.IsType<
EqualException
>(ex);
216
Assert.IsType<
EqualException
>(ex);
237
Assert.IsType<
EqualException
>(ex);
268
Assert.IsType<
EqualException
>(ex);
303
Assert.IsType<
EqualException
>(ex);
342
Assert.IsType<
EqualException
>(ex);
377
Assert.IsType<
EqualException
>(ex);
438
Assert.IsType<
EqualException
>(ex);
469
Assert.IsType<
EqualException
>(ex);
504
Assert.IsType<
EqualException
>(ex);
625
Assert.IsType<
EqualException
>(ex);
662
Assert.IsType<
EqualException
>(ex);
693
Assert.IsType<
EqualException
>(ex);
724
Assert.IsType<
EqualException
>(ex);
755
Assert.IsType<
EqualException
>(ex);
849
Assert.IsType<
EqualException
>(ex);
889
Assert.IsType<
EqualException
>(ex);
917
Assert.IsType<
EqualException
>(ex);
958
Assert.IsType<
EqualException
>(ex);
998
Assert.IsType<
EqualException
>(ex);
1029
Assert.IsType<
EqualException
>(ex);
1069
Assert.IsType<
EqualException
>(ex);
1124
Assert.IsType<
EqualException
>(ex);
1147
Assert.IsType<
EqualException
>(ex);
1161
Assert.IsType<
EqualException
>(ex);
1205
Assert.IsType<
EqualException
>(ex);
1268
Assert.IsType<
EqualException
>(ex);
1307
Assert.IsType<
EqualException
>(ex);
1342
Assert.IsType<
EqualException
>(ex);
1376
Assert.IsType<
EqualException
>(ex);
1402
Assert.IsType<
EqualException
>(ex);
1419
Assert.IsType<
EqualException
>(ex);
1436
Assert.IsType<
EqualException
>(ex);
1530
Assert.IsType<
EqualException
>(ex);
1573
Assert.IsType<
EqualException
>(ex);
1601
Assert.IsType<
EqualException
>(ex);
1644
Assert.IsType<
EqualException
>(ex);
1687
Assert.IsType<
EqualException
>(ex);
1747
Assert.IsType<
EqualException
>(ex);
1854
Assert.IsType<
EqualException
>(ex);
1885
Assert.IsType<
EqualException
>(ex);
1933
Assert.IsType<
EqualException
>(ex);
1966
Assert.IsType<
EqualException
>(ex);
2000
Assert.IsType<
EqualException
>(ex);
2011
Assert.IsType<
EqualException
>(ex2);
2044
Assert.IsType<
EqualException
>(ex);
2073
Assert.IsType<
EqualException
>(ex);
2107
Assert.IsType<
EqualException
>(ex);
2118
Assert.IsType<
EqualException
>(ex2);
2152
Assert.IsType<
EqualException
>(ex);
2163
Assert.IsType<
EqualException
>(ex2);
2187
Assert.IsType<
EqualException
>(ex);
2212
Assert.IsType<
EqualException
>(ex);
2235
Assert.IsType<
EqualException
>(ex);
2268
Assert.IsType<
EqualException
>(ex);
2288
Assert.IsType<
EqualException
>(ex);
2308
Assert.IsType<
EqualException
>(ex);
2322
Assert.IsType<
EqualException
>(ex);
2348
Assert.IsType<
EqualException
>(ex);
2371
Assert.IsType<
EqualException
>(ex);
2404
Assert.IsType<
EqualException
>(ex);
2424
Assert.IsType<
EqualException
>(ex);
2444
Assert.IsType<
EqualException
>(ex);
2458
Assert.IsType<
EqualException
>(ex);
Asserts\MemoryAssertsTests.cs (5)
636
Assert.IsType<
EqualException
>(ex);
656
Assert.IsType<
EqualException
>(ex);
733
Assert.IsType<
EqualException
>(ex);
757
Assert.IsType<
EqualException
>(ex);
813
Assert.IsType<
EqualException
>(ex);
Asserts\SpanAssertsTests.cs (5)
636
Assert.IsType<
EqualException
>(ex);
656
Assert.IsType<
EqualException
>(ex);
741
Assert.IsType<
EqualException
>(ex);
765
Assert.IsType<
EqualException
>(ex);
821
Assert.IsType<
EqualException
>(ex);
Asserts\StringAssertsTests.cs (10)
644
Assert.IsType<
EqualException
>(ex);
672
Assert.IsType<
EqualException
>(ex);
704
Assert.IsType<
EqualException
>(ex);
735
Assert.IsType<
EqualException
>(ex);
766
Assert.IsType<
EqualException
>(ex);
797
Assert.IsType<
EqualException
>(ex);
828
Assert.IsType<
EqualException
>(ex);
860
Assert.IsType<
EqualException
>(ex);
892
Assert.IsType<
EqualException
>(ex);
924
Assert.IsType<
EqualException
>(ex);
Microsoft.ML.IntegrationTests (1)
Common.cs (1)
319
catch (
EqualException
)
xunit.assert (72)
AsyncCollectionAsserts.cs (4)
210
/// <exception cref="
EqualException
">Thrown when the objects are not equal</exception>
227
/// <exception cref="
EqualException
">Thrown when the objects are not equal</exception>
245
/// <exception cref="
EqualException
">Thrown when the objects are not equal</exception>
264
/// <exception cref="
EqualException
">Thrown when the objects are not equal</exception>
CollectionAsserts.cs (2)
548
/// <exception cref="
EqualException
">Thrown when the objects are not equal</exception>
566
/// <exception cref="
EqualException
">Thrown when the objects are not equal</exception>
EqualityAsserts.cs (12)
102
throw
EqualException
.ForMismatchedValuesWithError(
153
throw
EqualException
.ForMismatchedStringsWithHeader(
233
throw
EqualException
.ForMismatchedCollectionsWithError(mismatchedIndex, formattedExpected, expectedPointer, expectedItemType, formattedActual, actualPointer, actualItemType, exception, collectionDisplay);
259
throw
EqualException
.ForMismatchedValues(
285
throw
EqualException
.ForMismatchedValues(
308
throw
EqualException
.ForMismatchedValues(
331
throw
EqualException
.ForMismatchedValues(
357
throw
EqualException
.ForMismatchedValues(
380
throw
EqualException
.ForMismatchedValues(
403
throw
EqualException
.ForMismatchedValues(
439
throw
EqualException
.ForMismatchedValues(ArgumentFormatter.Format(expected), actualValue);
473
throw
EqualException
.ForMismatchedValues(ArgumentFormatter.Format(expected), actualValue);
EqualityAsserts_aot.cs (4)
36
throw
EqualException
.ForMismatchedValues(ArgumentFormatter.Format(expected), ArgumentFormatter.Format(actual));
40
throw
EqualException
.ForMismatchedValues(ArgumentFormatter.Format(expected), ArgumentFormatter.Format(actual));
44
throw
EqualException
.ForMismatchedValues(
52
throw
EqualException
.ForMismatchedValues(
MemoryAsserts.cs (4)
144
/// <exception cref="
EqualException
">Thrown when the Memory values are not equivalent.</exception>
156
/// <exception cref="
EqualException
">Thrown when the Memory values are not equivalent.</exception>
168
/// <exception cref="
EqualException
">Thrown when the Memory values are not equivalent.</exception>
180
/// <exception cref="
EqualException
">Thrown when the Memory values are not equivalent.</exception>
Sdk\Exceptions\EqualException.cs (16)
41
/// Creates a new instance of <see cref="
EqualException
"/> to be thrown when two collections
52
public static
EqualException
ForMismatchedCollections(
73
/// Creates a new instance of <see cref="
EqualException
"/> to be thrown when two collections
85
public static
EqualException
ForMismatchedCollectionsWithError(
132
/// Creates a new instance of <see cref="
EqualException
"/> to be thrown when two sets
140
public static
EqualException
ForMismatchedSets(
184
/// Creates a new instance of <see cref="
EqualException
"/> to be thrown when two string
191
public static
EqualException
ForMismatchedStrings(
204
/// Creates a new instance of <see cref="
EqualException
"/> to be thrown when two string
212
public static
EqualException
ForMismatchedStringsWithHeader(
256
public static
EqualException
ForMismatchedValues(
269
/// Creates a new instance of <see cref="
EqualException
"/> to be thrown when two values
277
public static
EqualException
ForMismatchedValues(
292
public static
EqualException
ForMismatchedValuesWithError(
315
/// Creates a new instance of <see cref="
EqualException
"/> to be thrown when two values
326
public static
EqualException
ForMismatchedValuesWithError(
SetAsserts_aot.cs (5)
27
/// <exception cref="
EqualException
">Thrown if the set is not equal</exception>
53
/// <exception cref="
EqualException
">Thrown if the set is not equal</exception>
89
/// <exception cref="
EqualException
">Thrown if the set is not equal</exception>
115
/// <exception cref="
EqualException
">Thrown if the set is not equal</exception>
300
throw
EqualException
.ForMismatchedSets(expectedFormatted, expectedTypeFormatted, actualFormatted, actualTypeFormatted, collectionDisplay);
SpanAsserts.cs (5)
142
/// <exception cref="
EqualException
">Thrown when the collections are not equal.</exception>
155
/// <exception cref="
EqualException
">Thrown when the spans are not equal.</exception>
167
/// <exception cref="
EqualException
">Thrown when the spans are not equal.</exception>
179
/// <exception cref="
EqualException
">Thrown when the spans are not equal.</exception>
191
/// <exception cref="
EqualException
">Thrown when the spans are not equal.</exception>
StringAsserts.cs (20)
816
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
836
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
875
throw
EqualException
.ForMismatchedStrings(expected.ToString(), actual.ToString(), result.MismatchIndexX ?? -1, result.MismatchIndexY ?? -1);
883
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
894
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
905
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
916
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
931
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
977
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
1023
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
1069
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
1122
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
1133
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
1144
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
1155
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
1170
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
1216
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
1262
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
1308
/// <exception cref="
EqualException
">Thrown when the strings are not equivalent.</exception>
1352
throw
EqualException
.ForMismatchedStrings(expected, actual, -1, -1);