2 types derived from ComparableBaseClass
Microsoft.DotNet.XUnitAssert.Tests (2)
EqualityAssertsTests.cs (2)
4416
class ComparableSubClassA :
ComparableBaseClass
4422
class ComparableSubClassB :
ComparableBaseClass
8 instantiations of ComparableBaseClass
Microsoft.DotNet.XUnitAssert.Tests (8)
EqualityAssertsTests.cs (8)
368
var expected = new
ComparableBaseClass
(1);
377
var expected = new
ComparableBaseClass
(1);
395
var actual = new
ComparableBaseClass
(1);
404
var actual = new
ComparableBaseClass
(2);
2690
var expected = new
ComparableBaseClass
(1);
2707
var expected = new
ComparableBaseClass
(1);
2717
var actual = new
ComparableBaseClass
(1);
2734
var actual = new
ComparableBaseClass
(2);
14 references to ComparableBaseClass
Microsoft.DotNet.XUnitAssert.Tests (14)
EqualityAssertsTests.cs (14)
345
Assert.Equal<
ComparableBaseClass
>(expected, actual);
354
var ex = Record.Exception(() => Assert.Equal<
ComparableBaseClass
>(expected, actual));
368
var
expected = new ComparableBaseClass(1);
377
var
expected = new ComparableBaseClass(1);
395
var
actual = new ComparableBaseClass(1);
404
var
actual = new ComparableBaseClass(2);
2667
var ex = Record.Exception(() => Assert.NotEqual<
ComparableBaseClass
>(expected, actual));
2684
Assert.NotEqual<
ComparableBaseClass
>(expected, actual);
2690
var
expected = new ComparableBaseClass(1);
2707
var
expected = new ComparableBaseClass(1);
2717
var
actual = new ComparableBaseClass(1);
2734
var
actual = new ComparableBaseClass(2);
4404
class ComparableBaseClass : IComparable<
ComparableBaseClass
>
4413
public int CompareTo(
ComparableBaseClass
? other) => Value.CompareTo(other!.Value);