8 instantiations of ComparableThrower
Microsoft.DotNet.XUnitAssert.Tests (8)
EqualityAssertsTests.cs (8)
420
var expected = new
ComparableThrower
(1);
421
var actual = new
ComparableThrower
(1);
431
var expected = new
ComparableThrower
(1);
432
var actual = new
ComparableThrower
(2);
2742
var expected = new
ComparableThrower
(1);
2743
var actual = new
ComparableThrower
(1);
2766
var expected = new
ComparableThrower
(1);
2767
var actual = new
ComparableThrower
(2);
15 references to ComparableThrower
Microsoft.DotNet.XUnitAssert.Tests (15)
EqualityAssertsTests.cs (15)
420
var
expected = new ComparableThrower(1);
421
var
actual = new ComparableThrower(1);
424
Assert.Equal(expected, (IComparable<
ComparableThrower
>)actual);
431
var
expected = new ComparableThrower(1);
432
var
actual = new ComparableThrower(2);
448
assertFailure(() => Assert.Equal(expected, (IComparable<
ComparableThrower
>)actual));
2742
var
expected = new ComparableThrower(1);
2743
var
actual = new ComparableThrower(1);
2759
assertFailure(() => Assert.NotEqual(expected, (IComparable<
ComparableThrower
>)actual));
2766
var
expected = new ComparableThrower(1);
2767
var
actual = new ComparableThrower(2);
2770
Assert.NotEqual(expected, (IComparable<
ComparableThrower
>)actual);
4428
class ComparableThrower : IComparable<
ComparableThrower
>
4437
public int CompareTo(
ComparableThrower
? other)
4442
public override bool Equals(object? obj) => Value == ((
ComparableThrower
?)obj)!.Value;