示例#1
0
        //-------------------------------------------------------------------------
        public virtual void test_withCurrency()
        {
            ZeroRateSensitivity @base = ZeroRateSensitivity.of(GBP, YEARFRAC, 32d);

            assertSame(@base.withCurrency(GBP), @base);
            assertEquals(@base.withCurrency(USD), ZeroRateSensitivity.of(GBP, YEARFRAC, USD, 32d));
        }