예제 #1
0
        //-------------------------------------------------------------------------
        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);
        }
예제 #2
0
//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);
        }