//-------------------------------------------------------------------------
 public virtual void test_calculate()
 {
     assertEquals(CurveNodeDate.of(DATE1).calculate(() => DATE2, () => DATE3), DATE1);
     assertEquals(CurveNodeDate.END.calculate(() => DATE2, () => DATE3), DATE2);
     assertEquals(CurveNodeDate.LAST_FIXING.calculate(() => DATE2, () => DATE3), DATE3);
 }
 public virtual void test_builder_incorrect_fixed_date()
 {
     assertThrowsIllegalArg(() => CurveNodeDate.meta().builder().set(CurveNodeDate.meta().type(), CurveNodeDateType.LAST_FIXING).set(CurveNodeDate.meta().date(), DATE1).build());
 }
        public virtual void test_builder_fixed()
        {
            CurveNodeDate test = CurveNodeDate.meta().builder().set(CurveNodeDate.meta().type(), CurveNodeDateType.FIXED).set(CurveNodeDate.meta().date(), DATE1).build();

            assertEquals(test.Fixed, true);
            assertEquals(test.End, false);
            assertEquals(test.LastFixing, false);
            assertEquals(test.Type, CurveNodeDateType.FIXED);
            assertEquals(test.Date, DATE1);
        }
 public virtual void test_builder_incorrect_no_fixed_date()
 {
     assertThrowsIllegalArg(() => CurveNodeDate.meta().builder().set(CurveNodeDate.meta().type(), CurveNodeDateType.FIXED).build());
 }
        public virtual void test_serialization()
        {
            CurveNodeDate test = CurveNodeDate.of(DATE1);

            assertSerialization(test);
        }