4 instantiations of EqualException
xunit.assert (4)
Sdk\Exceptions\EqualException.cs (4)
113 return new EqualException("Assert.Equal() Failure: " + error.Message); 131 return new EqualException(message, error); 169 return new EqualException(message); 233 return new EqualException(
207 references to EqualException
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
43throw EqualException.ForMismatchedStrings(
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
43throw EqualException.ForMismatchedStrings(
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
43throw EqualException.ForMismatchedStrings(
Aspire.Hosting.Tests (2)
DistributedApplicationTests.cs (1)
777catch (Exception ex) when (ex is not EqualException)
tests\Shared\Logging\LogValuesAssert.cs (1)
43throw EqualException.ForMismatchedStrings(
Aspire.Playground.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
43throw EqualException.ForMismatchedStrings(
Microsoft.AspNetCore.Analyzer.Testing (2)
Assert.cs (2)
21throw EqualException.ForMismatchedValues( 33throw EqualException.ForMismatchedValues(
Microsoft.AspNetCore.InternalTesting (1)
Logging\LogValuesAssert.cs (1)
47throw EqualException.ForMismatchedValues(
Microsoft.AspNetCore.InternalTesting.Tests (4)
LogValuesAssertTest.cs (4)
119var equalException = Assert.Throws<EqualException>( 207var equalException = Assert.Throws<EqualException>(
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
MediaTypeAssert.cs (2)
35throw EqualException.ForMismatchedValues(left.ToString(), right.ToString()); 42throw EqualException.ForMismatchedValues(left.ToString(), right.ToString());
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (6)
XmlAssert.cs (1)
32throw EqualException.ForMismatchedValues(
XmlAssertTest.cs (5)
20var equalException = Assert.Throws<EqualException>(() => XmlAssert.Equal(input1, input2)); 72Assert.Throws<EqualException>(() => XmlAssert.Equal(input1, input2)); 113var equalException = Assert.Throws<EqualException>(() => XmlAssert.Equal(expected, actual));
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Infrastructure\HttpClientExtensions.cs (1)
52throw 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)
32throw EqualException.ForMismatchedValues(
Microsoft.DotNet.XUnitAssert.Tests (120)
AsyncCollectionAssertsTests.cs (8)
641 Assert.IsType<EqualException>(ex); 663 Assert.IsType<EqualException>(ex); 769 Assert.IsType<EqualException>(ex); 794 Assert.IsType<EqualException>(ex); 875 Assert.IsType<EqualException>(ex); 927 Assert.IsType<EqualException>(ex); 967 Assert.IsType<EqualException>(ex); 1028 Assert.IsType<EqualException>(ex);
CollectionAssertsTests.cs (20)
714 Assert.IsType<EqualException>(ex); 731 Assert.IsType<EqualException>(ex); 803 Assert.IsType<EqualException>(ex); 871 Assert.IsType<EqualException>(ex); 880 Assert.IsType<EqualException>(ex); 1025 Assert.IsType<EqualException>(ex); 1040 Assert.IsType<EqualException>(ex); 1109 Assert.IsType<EqualException>(ex); 1154 Assert.IsType<EqualException>(ex); 1184 Assert.IsType<EqualException>(ex); 1236 Assert.IsType<EqualException>(ex); 1277 Assert.IsType<EqualException>(ex); 1294 Assert.IsType<EqualException>(ex); 1327 Assert.IsType<EqualException>(ex); 1371 Assert.IsType<EqualException>(ex); 1401 Assert.IsType<EqualException>(ex); 1483 Assert.IsType<EqualException>(ex); 1539 Assert.IsType<EqualException>(ex); 1557 Assert.IsType<EqualException>(ex); 1574 Assert.IsType<EqualException>(ex);
EqualityAssertsTests.cs (80)
28 Assert.IsType<EqualException>(ex); 47 Assert.IsType<EqualException>(ex); 80 Assert.IsType<EqualException>(ex); 108 Assert.IsType<EqualException>(ex); 131 Assert.IsType<EqualException>(ex); 169 Assert.IsType<EqualException>(ex); 183 Assert.IsType<EqualException>(ex); 204 Assert.IsType<EqualException>(ex); 235 Assert.IsType<EqualException>(ex); 265 Assert.IsType<EqualException>(ex); 299 Assert.IsType<EqualException>(ex); 330 Assert.IsType<EqualException>(ex); 356 Assert.IsType<EqualException>(ex); 382 Assert.IsType<EqualException>(ex); 408 Assert.IsType<EqualException>(ex); 438 Assert.IsType<EqualException>(ex); 473 Assert.IsType<EqualException>(ex); 503 Assert.IsType<EqualException>(ex); 529 Assert.IsType<EqualException>(ex); 558 Assert.IsType<EqualException>(ex); 590 Assert.IsType<EqualException>(ex); 616 Assert.IsType<EqualException>(ex); 642 Assert.IsType<EqualException>(ex); 668 Assert.IsType<EqualException>(ex); 698 Assert.IsType<EqualException>(ex); 728 Assert.IsType<EqualException>(ex); 765 Assert.IsType<EqualException>(ex); 800 Assert.IsType<EqualException>(ex); 824 Assert.IsType<EqualException>(ex); 861 Assert.IsType<EqualException>(ex); 893 Assert.IsType<EqualException>(ex); 924 Assert.IsType<EqualException>(ex); 956 Assert.IsType<EqualException>(ex); 988 Assert.IsType<EqualException>(ex); 1007 Assert.IsType<EqualException>(ex); 1030 Assert.IsType<EqualException>(ex); 1044 Assert.IsType<EqualException>(ex); 1088 Assert.IsType<EqualException>(ex); 1142 Assert.IsType<EqualException>(ex); 1176 Assert.IsType<EqualException>(ex); 1206 Assert.IsType<EqualException>(ex); 1235 Assert.IsType<EqualException>(ex); 1261 Assert.IsType<EqualException>(ex); 1278 Assert.IsType<EqualException>(ex); 1295 Assert.IsType<EqualException>(ex); 1325 Assert.IsType<EqualException>(ex); 1348 Assert.IsType<EqualException>(ex); 1381 Assert.IsType<EqualException>(ex); 1420 Assert.IsType<EqualException>(ex); 1446 Assert.IsType<EqualException>(ex); 1485 Assert.IsType<EqualException>(ex); 1524 Assert.IsType<EqualException>(ex); 1554 Assert.IsType<EqualException>(ex); 1583 Assert.IsType<EqualException>(ex); 1611 Assert.IsType<EqualException>(ex); 1641 Assert.IsType<EqualException>(ex); 1671 Assert.IsType<EqualException>(ex); 1708 Assert.IsType<EqualException>(ex); 1745 Assert.IsType<EqualException>(ex); 1783 Assert.IsType<EqualException>(ex); 1794 Assert.IsType<EqualException>(ex2); 1831 Assert.IsType<EqualException>(ex); 1864 Assert.IsType<EqualException>(ex); 1902 Assert.IsType<EqualException>(ex); 1913 Assert.IsType<EqualException>(ex2); 1951 Assert.IsType<EqualException>(ex); 1962 Assert.IsType<EqualException>(ex2); 1990 Assert.IsType<EqualException>(ex); 2019 Assert.IsType<EqualException>(ex); 2046 Assert.IsType<EqualException>(ex); 2083 Assert.IsType<EqualException>(ex); 2107 Assert.IsType<EqualException>(ex); 2131 Assert.IsType<EqualException>(ex); 2149 Assert.IsType<EqualException>(ex); 2179 Assert.IsType<EqualException>(ex); 2206 Assert.IsType<EqualException>(ex); 2243 Assert.IsType<EqualException>(ex); 2267 Assert.IsType<EqualException>(ex); 2291 Assert.IsType<EqualException>(ex); 2309 Assert.IsType<EqualException>(ex);
MemoryAssertsTests.cs (5)
641 Assert.IsType<EqualException>(ex); 661 Assert.IsType<EqualException>(ex); 738 Assert.IsType<EqualException>(ex); 762 Assert.IsType<EqualException>(ex); 818 Assert.IsType<EqualException>(ex);
SpanAssertsTests.cs (5)
641 Assert.IsType<EqualException>(ex); 661 Assert.IsType<EqualException>(ex); 738 Assert.IsType<EqualException>(ex); 762 Assert.IsType<EqualException>(ex); 818 Assert.IsType<EqualException>(ex);
StringAssertsTests.cs (2)
681 Assert.IsType<EqualException>(ex); 711 Assert.IsType<EqualException>(ex);
Microsoft.ML.IntegrationTests (1)
Common.cs (1)
319catch (EqualException)
System.Drawing.Common.Tests (2)
Helpers.cs (2)
47private static EqualException GetBitmapEqualFailureException(Bitmap bitmap, Color[][] colors, int firstFailureX, int firstFailureY) 74return EqualException.ForMismatchedValues(
System.Windows.Forms.Primitives.TestUtilities (3)
Extensions\AssertExtensions.cs (3)
404throw EqualException.ForMismatchedValues(expectedString, actualString); 576/// <exception cref="EqualException">Thrown when the values are not equal</exception> 582throw EqualException.ForMismatchedValues(ToStringPadded(expected), ToStringPadded(actual));
xunit.assert (58)
AsyncCollectionAsserts.cs (4)
217 /// <exception cref="EqualException">Thrown when the objects are not equal</exception> 234 /// <exception cref="EqualException">Thrown when the objects are not equal</exception> 252 /// <exception cref="EqualException">Thrown when the objects are not equal</exception> 271 /// <exception cref="EqualException">Thrown when the objects are not equal</exception>
CollectionAsserts.cs (2)
477 /// <exception cref="EqualException">Thrown when the objects are not equal</exception> 495 /// <exception cref="EqualException">Thrown when the objects are not equal</exception>
EqualityAsserts.cs (13)
81 /// <exception cref="EqualException">Thrown when the objects are not equal</exception> 129 /// <exception cref="EqualException">Thrown when the objects are not equal</exception> 174 throw EqualException.ForMismatchedValuesWithError(expected, actual, exception); 291 throw EqualException.ForMismatchedCollectionsWithError(mismatchedIndex, formattedExpected, expectedPointer, expectedItemType, formattedActual, actualPointer, actualItemType, exception, collectionDisplay); 350 throw EqualException.ForMismatchedValues( 376 throw EqualException.ForMismatchedValues( 399 throw EqualException.ForMismatchedValues( 422 throw EqualException.ForMismatchedValues( 448 throw EqualException.ForMismatchedValues( 471 throw EqualException.ForMismatchedValues( 494 throw EqualException.ForMismatchedValues( 530 throw EqualException.ForMismatchedValues(expected, actualValue); 564 throw EqualException.ForMismatchedValues(expected, actualValue);
MemoryAsserts.cs (4)
196 /// <exception cref="EqualException">Thrown when the Memory values are not equivalent.</exception> 208 /// <exception cref="EqualException">Thrown when the Memory values are not equivalent.</exception> 220 /// <exception cref="EqualException">Thrown when the Memory values are not equivalent.</exception> 232 /// <exception cref="EqualException">Thrown when the Memory values are not equivalent.</exception>
Sdk\Exceptions\EqualException.cs (10)
44 /// Creates a new instance of <see cref="EqualException"/> to be thrown when two collections 55 public static EqualException ForMismatchedCollections( 76 /// Creates a new instance of <see cref="EqualException"/> to be thrown when two collections 88 public static EqualException ForMismatchedCollectionsWithError( 135 /// Creates a new instance of <see cref="EqualException"/> to be thrown when two string 142 public static EqualException ForMismatchedStrings( 173 /// Creates a new instance of <see cref="EqualException"/> to be thrown when two values 181 public static EqualException ForMismatchedValues( 194 /// Creates a new instance of <see cref="EqualException"/> to be thrown when two values 205 public static EqualException ForMismatchedValuesWithError(
SpanAsserts.cs (5)
194 /// <exception cref="EqualException">Thrown when the collections are not equal.</exception> 207 /// <exception cref="EqualException">Thrown when the spans are not equal.</exception> 219 /// <exception cref="EqualException">Thrown when the spans are not equal.</exception> 231 /// <exception cref="EqualException">Thrown when the spans are not equal.</exception> 243 /// <exception cref="EqualException">Thrown when the spans are not equal.</exception>
StringAsserts.cs (20)
840 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 860 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 965 throw EqualException.ForMismatchedStrings(expected.ToString(), actual.ToString(), expectedIndex, actualIndex); 975 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 986 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 997 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1008 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1023 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1042 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1061 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1080 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1106 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1117 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1128 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1139 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1154 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1200 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1246 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1292 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 1340 throw EqualException.ForMismatchedStrings(expected, actual, -1, -1);