Ejemplo n.º 1
0
//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, double first, double second)
        public virtual void test_parse_good(string text, double first, double second)
        {
            DoublesPair test = DoublesPair.parse(text);

            assertEquals(test.First, first, TOLERANCE);
            assertEquals(test.Second, second, TOLERANCE);
        }
Ejemplo n.º 2
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_toString(double first, double second)
        public virtual void test_toString(double first, double second)
        {
            DoublesPair test = DoublesPair.of(first, second);
            string      str  = "[" + first + ", " + second + "]";

            assertEquals(test.ToString(), str);
            assertEquals(DoublesPair.parse(str), test);
        }
Ejemplo n.º 3
0
//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)
        {
            DoublesPair.parse(text);
        }