예제 #1
0
        public virtual void test_builder_incomplete()
        {
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: org.joda.beans.BeanBuilder<? extends YearMonthDateParameterMetadata> builder = YearMonthDateParameterMetadata.meta().builder();
            BeanBuilder <YearMonthDateParameterMetadata> builder = YearMonthDateParameterMetadata.meta().builder();

            builder.set(YearMonthDateParameterMetadata.meta().date(), DATE);
            assertThrowsIllegalArg(() => builder.build());
        }
예제 #2
0
        public virtual void test_builder_defaultLabel()
        {
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: org.joda.beans.BeanBuilder<? extends YearMonthDateParameterMetadata> builder = YearMonthDateParameterMetadata.meta().builder();
            BeanBuilder <YearMonthDateParameterMetadata> builder = YearMonthDateParameterMetadata.meta().builder();

            builder.set(YearMonthDateParameterMetadata.meta().date(), DATE);
            builder.set(YearMonthDateParameterMetadata.meta().yearMonth(), JAN2015);
            YearMonthDateParameterMetadata test = builder.build();

            assertEquals(test.Date, DATE);
            assertEquals(test.YearMonth, JAN2015);
            assertEquals(test.Label, "Jan15");
            assertEquals(test.Identifier, JAN2015);
        }