private void TestIsEqual(object instance)
    {
        if (instance is IEqualComparable AsComparable)
        {
            CompareEqual Comparer = CompareEqual.New(true);
            AsComparable.IsEqual(Comparer, AsComparable);

            Comparer.SetFailIndex(0);
            AsComparable.IsEqual(Comparer, AsComparable);

            Comparer.SetFailIndex(1);
            AsComparable.IsEqual(Comparer, AsComparable);

            Comparer.SetFailIndex(2);
            AsComparable.IsEqual(Comparer, AsComparable);

            Comparer.SetFailIndex(3);
            AsComparable.IsEqual(Comparer, AsComparable);

            Comparer.SetFailIndex(4);
            AsComparable.IsEqual(Comparer, AsComparable);
        }
    }