Ejemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "parseBad") public void test_parse_String_bad(String input)
        public virtual void test_parse_String_bad(string input)
        {
            assertThrowsIllegalArg(() => CurrencyAmount.parse(input));
        }
Ejemplo n.º 2
0
        //-------------------------------------------------------------------------
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void test_parse_String_roundTrip()
        public virtual void test_parse_String_roundTrip()
        {
            assertEquals(CurrencyAmount.parse(CCY_AMOUNT.ToString()), CCY_AMOUNT);
        }
Ejemplo n.º 3
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_String_good(String input, Currency currency, double amount)
        public virtual void test_parse_String_good(string input, Currency currency, double amount)
        {
            assertEquals(CurrencyAmount.parse(input), CurrencyAmount.of(currency, amount));
        }