//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, int first, double second) public virtual void test_parse_good(string text, int first, double second) { IntDoublePair test = IntDoublePair.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(int first, double second) public virtual void test_toString(int first, double second) { IntDoublePair test = IntDoublePair.of(first, second); string str = "[" + first + ", " + second + "]"; assertEquals(test.ToString(), str); assertEquals(IntDoublePair.parse(str), 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) { IntDoublePair.parse(text); }