Esempio n. 1
0
        //-------------------------------------------------------------------------
        public virtual void test_withInfo()
        {
            DefaultCurveMetadata @base = DefaultCurveMetadata.of(CURVE_NAME);

            assertThat(@base.findInfo(CurveInfoType.DAY_COUNT).Present).False;
            DefaultCurveMetadata test = @base.withInfo(CurveInfoType.DAY_COUNT, ACT_360);

            assertThat(@base.findInfo(CurveInfoType.DAY_COUNT).Present).False;
            assertThat(test.findInfo(CurveInfoType.DAY_COUNT).Present).True;
        }