コード例 #1
0
        //-------------------------------------------------------------------------
        public virtual void test_mapAmounts()
        {
            MultiCurrencyAmount @base = MultiCurrencyAmount.of(CA1, CA2);
            MultiCurrencyAmount test  = @base.mapAmounts(a => a * 2.5 + 1);

            assertMCA(test, CA1.mapAmount(a => a * 2.5 + 1), CA2.mapAmount(a => a * 2.5 + 1));
        }
コード例 #2
0
        public virtual void test_mapAmount()
        {
            CurrencyAmount test = CCY_AMOUNT.mapAmount(v => v * 2 + 1);

            assertEquals(test, CurrencyAmount.of(CCY1, AMT1 * 2 + 1));
        }