//------------------------------------------------------------------------- public virtual void test_withDate() { LocalDateDoublePoint @base = LocalDateDoublePoint.of(DATE_2012_06_30, 1d); LocalDateDoublePoint test = @base.withDate(DATE_2012_06_29); assertEquals(test.Date, DATE_2012_06_29); assertEquals(test.Value, 1d, TOLERANCE); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test(expectedExceptions = IllegalArgumentException.class) public void test_withDate_nullDate() public virtual void test_withDate_nullDate() { LocalDateDoublePoint @base = LocalDateDoublePoint.of(DATE_2012_06_30, 1d); @base.withDate(null); }