示例#1
0
        //-------------------------------------------------------------------------
        public virtual void test_withSensitivity()
        {
            FxIndexSensitivity @base    = FxIndexSensitivity.of(GBP_USD_WM_OBS, USD, GBP, SENSITIVITY_VALUE);
            FxIndexSensitivity test     = @base.withSensitivity(2.5d);
            FxIndexSensitivity expected = FxIndexSensitivity.of(GBP_USD_WM_OBS, USD, GBP, 2.5d);

            assertEquals(test, expected);
        }