コード例 #1
0
        public virtual void test_multipliedBy_vs_combinedWith()
        {
            CurrencyParameterSensitivities multiplied = SENSI_2.multipliedBy(2d);
            CurrencyParameterSensitivities added      = SENSI_2.combinedWith(SENSI_2);

            assertEquals(multiplied, added);
        }
コード例 #2
0
        //-------------------------------------------------------------------------
        public virtual void test_combinedWith_one_notNormalized()
        {
            CurrencyParameterSensitivities test = SENSI_1.combinedWith(ENTRY_EUR);

            assertEquals(test.Sensitivities, ImmutableList.of(ENTRY_USD, ENTRY_EUR));
        }