//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "factory") public void test_sizeElements(long first, double second)
        public virtual void test_sizeElements(long first, double second)
        {
            LongDoublePair test = LongDoublePair.of(first, second);

            assertEquals(test.size(), 2);
            assertEquals(test.elements(), ImmutableList.of(first, second));
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "factory") public void test_of_getters(long first, double second)
        public virtual void test_of_getters(long first, double second)
        {
            LongDoublePair test = LongDoublePair.of(first, second);

            assertEquals(test.First, first, TOLERANCE);
            assertEquals(test.Second, second, TOLERANCE);
        }
        public virtual void test_hashCode()
        {
            LongDoublePair a1 = LongDoublePair.of(1L, 1.7d);
            LongDoublePair a2 = LongDoublePair.of(1L, 1.7d);

            assertEquals(a1.GetHashCode(), a2.GetHashCode());
        }
        //-------------------------------------------------------------------------
        public virtual void test_equals()
        {
            LongDoublePair a  = LongDoublePair.of(1L, 2.0d);
            LongDoublePair a2 = LongDoublePair.of(1L, 2.0d);
            LongDoublePair b  = LongDoublePair.of(1L, 3.0d);
            LongDoublePair c  = LongDoublePair.of(2L, 2.0d);
            LongDoublePair d  = LongDoublePair.of(2L, 3.0d);

            assertEquals(a.Equals(a), true);
            assertEquals(a.Equals(b), false);
            assertEquals(a.Equals(c), false);
            assertEquals(a.Equals(d), false);
            assertEquals(a.Equals(a2), true);

            assertEquals(b.Equals(a), false);
            assertEquals(b.Equals(b), true);
            assertEquals(b.Equals(c), false);
            assertEquals(b.Equals(d), false);

            assertEquals(c.Equals(a), false);
            assertEquals(c.Equals(b), false);
            assertEquals(c.Equals(c), true);
            assertEquals(c.Equals(d), false);

            assertEquals(d.Equals(a), false);
            assertEquals(d.Equals(b), false);
            assertEquals(d.Equals(c), false);
            assertEquals(d.Equals(d), true);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "parseGood") public void test_parse_good(String text, long first, double second)
        public virtual void test_parse_good(string text, long first, double second)
        {
            LongDoublePair test = LongDoublePair.parse(text);

            assertEquals(test.First, first, TOLERANCE);
            assertEquals(test.Second, second, TOLERANCE);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "factory") public void test_toString(long first, double second)
        public virtual void test_toString(long first, double second)
        {
            LongDoublePair test = LongDoublePair.of(first, second);
            string         str  = "[" + first + ", " + second + "]";

            assertEquals(test.ToString(), str);
            assertEquals(LongDoublePair.parse(str), test);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "factory") public void test_ofPair(long first, double second)
        public virtual void test_ofPair(long first, double second)
        {
            Pair <long, double> pair = Pair.of(first, second);
            LongDoublePair      test = LongDoublePair.ofPair(pair);

            assertEquals(test.First, first);
            assertEquals(test.Second, second, TOLERANCE);
        }
        public virtual void test_equals_bad()
        {
            LongDoublePair a = LongDoublePair.of(1L, 1.7d);

            assertEquals(a.Equals(null), false);
            assertEquals(a.Equals(ANOTHER_TYPE), false);
            object unrelatedType = Pair.of(Convert.ToInt64(1L), Convert.ToDouble(1.7d));

            assertEquals(a.Equals(unrelatedType), false);
        }
        //-------------------------------------------------------------------------
        public virtual void test_compareTo()
        {
            LongDoublePair p12 = LongDoublePair.of(1L, 2d);
            LongDoublePair p13 = LongDoublePair.of(1L, 3d);
            LongDoublePair p21 = LongDoublePair.of(2L, 1d);

            assertTrue(p12.CompareTo(p12) == 0);
            assertTrue(p12.CompareTo(p13) < 0);
            assertTrue(p12.CompareTo(p21) < 0);

            assertTrue(p13.CompareTo(p12) > 0);
            assertTrue(p13.CompareTo(p13) == 0);
            assertTrue(p13.CompareTo(p21) < 0);

            assertTrue(p21.CompareTo(p12) > 0);
            assertTrue(p21.CompareTo(p13) > 0);
            assertTrue(p21.CompareTo(p21) == 0);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "factory") public void test_toPair(long first, double second)
        public virtual void test_toPair(long first, double second)
        {
            LongDoublePair test = LongDoublePair.of(first, second);

            assertEquals(test.toPair(), Pair.of(first, second));
        }
 public virtual void test_jodaConvert()
 {
     assertJodaConvert(typeof(LongDoublePair), LongDoublePair.of(1L, 1.7d));
 }
 public virtual void test_serialization()
 {
     assertSerialization(LongDoublePair.of(1L, 1.7d));
 }
        public virtual void coverage()
        {
            LongDoublePair test = LongDoublePair.of(1L, 1.7d);

            TestHelper.coverImmutableBean(test);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "parseBad", expectedExceptions = IllegalArgumentException.class) public void test_parse_bad(String text)
        public virtual void test_parse_bad(string text)
        {
            LongDoublePair.parse(text);
        }