コード例 #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));
        }
コード例 #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);
        }
コード例 #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));
        }