11 instantiations of EqualException
xunit.assert (11)
EqualityAsserts.cs (9)
106 throw new EqualException(expected, actual); 110 throw new EqualException(expected, actual); 130 throw new EqualException($"{expectedRounded} (rounded from {expected})", $"{actualRounded} (rounded from {actual})"); 152 throw new EqualException($"{expectedRounded} (rounded from {expected})", $"{actualRounded} (rounded from {actual})"); 173 throw new EqualException($"{expected:G17}", $"{actual:G17}"); 224 throw new EqualException($"{expected:G9}", $"{actual:G9}"); 244 throw new EqualException($"{expectedRounded} (rounded from {expected})", $"{actualRounded} (rounded from {actual})"); 280 throw new EqualException(expected.ToString(), actualValue); 317 throw new EqualException(expected.ToString(), actualValue);
Sdk\Exceptions\EqualException.cs (1)
245 return new EqualException(expectedText, actualText, mismatchIndex, mismatchIndex, expectedType, actualType, pointerPosition);
StringAsserts.cs (1)
360 throw new EqualException(expected, actual, expectedIndex, actualIndex);
79 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)
892catch (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 (27)
CollectionAssertsTests.cs (10)
38 Assert.All(ex.Failures, x => Assert.IsType<EqualException>(x)); 59 Assert.All(ex.Failures, x => Assert.IsType<EqualException>(x)); 888 Assert.Throws<EqualException>(() => Assert.Equal(expected, actual)); 898 Assert.Throws<EqualException>(() => Assert.Equal(expected, actual)); 949 Assert.Throws<EqualException>(() => Assert.Equal(expected, actual)); 959 Assert.Throws<EqualException>(() => Assert.Equal(expected, actual)); 985 var ex = Assert.Throws<EqualException>(() => Assert.Equal(expected, actual)); 1024 Assert.Throws<EqualException>(() => Assert.Equal(expected, actual)); 1034 Assert.Throws<EqualException>(() => Assert.Equal(expected, actual));
EqualityAssertsTests.cs (8)
22 var ex = Assert.Throws<EqualException>(() => Assert.Equal(42, 2112)); 743 var ex = Assert.Throws<EqualException>(() => Assert.Equal(42, 42, new Comparer<int>(false))); 874 var ex = Assert.Throws<EqualException>(() => Assert.StrictEqual(42, 2112)); 885 var ex = Assert.Throws<EqualException>(() => Assert.StrictEqual(expected, actual));
ExceptionAssertsTests.cs (6)
713 var eqEx = Assert.IsType<EqualException>(ex); 795 var eqEx = Assert.IsType<EqualException>(ex); 935 var eqEx = Assert.IsType<EqualException>(ex);
StringAssertsTests.cs (3)
158 var eqEx = Assert.IsType<EqualException>(ex); 173 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 (23)
CollectionAsserts.cs (2)
431 /// <exception cref="EqualException">Thrown when the objects are not equal</exception> 449 /// <exception cref="EqualException">Thrown when the objects are not equal</exception>
EqualityAsserts.cs (15)
61 /// <exception cref="EqualException">Thrown when the objects are not equal</exception> 79 /// <exception cref="EqualException">Thrown when the objects are not equal</exception> 104 throw EqualException.FromEnumerable(expectedAsIEnum, actualAsIEnum, mismatchedIndex.Value); 120 /// <exception cref="EqualException">Thrown when the values are not equal</exception> 163 /// <exception cref="EqualException">Thrown when the values are not equal</exception> 183 /// <exception cref="EqualException">Thrown when the values are not equal</exception> 214 /// <exception cref="EqualException">Thrown when the values are not equal</exception> 234 /// <exception cref="EqualException">Thrown when the values are not equal</exception> 252 /// <exception cref="EqualException">Thrown when the values are not equal</exception> 265 /// <exception cref="EqualException">Thrown when the values are not within the given precision</exception> 289 /// <exception cref="EqualException">Thrown when the values are not equal</exception> 302 /// <exception cref="EqualException">Thrown when the values are not within the given precision</exception> 327 /// <exception cref="EqualException">Thrown when the objects are not equal</exception> 416 /// <exception cref="EqualException">Thrown when the values are equal</exception> 436 /// <exception cref="EqualException">Thrown when the values are equal</exception>
Sdk\Exceptions\EqualException.cs (4)
39 /// Creates a new instance of the <see cref="EqualException"/> class. 58 /// Creates a new instance of the <see cref="EqualException"/> class for string comparisons. 217 /// Creates a new instance of the <see cref="EqualException"/> class for IEnumerable comparisons. 222 public static EqualException FromEnumerable(
StringAsserts.cs (2)
251 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception> 271 /// <exception cref="EqualException">Thrown when the strings are not equivalent.</exception>