//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "exactDivide") public void test_exactDivide_reverse(Frequency test, Frequency other, int expected)
        public virtual void test_exactDivide_reverse(Frequency test, Frequency other, int expected)
        {
            if (!test.Equals(other))
            {
                assertThrowsIllegalArg(() => other.exactDivide(test));
            }
        }
        //-------------------------------------------------------------------------
        public virtual void test_equals_hashCode()
        {
            Frequency a1 = P1D;
            Frequency a2 = Frequency.ofDays(1);
            Frequency b  = P3M;

            assertEquals(a1.Equals(a1), true);
            assertEquals(a1.Equals(b), false);
            assertEquals(a1.Equals(a2), true);

            assertEquals(a2.Equals(a1), true);
            assertEquals(a2.Equals(a2), true);
            assertEquals(a2.Equals(b), false);

            assertEquals(b.Equals(a1), false);
            assertEquals(b.Equals(a2), false);
            assertEquals(b.Equals(b), true);

            assertEquals(a1.GetHashCode(), a2.GetHashCode());
        }