public virtual void test_of_lookup_null() { assertThrows(() => FixedCouponBondYieldConvention.of(null), typeof(System.ArgumentException)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test(dataProvider = "name") public void test_of_lookupStandard(FixedCouponBondYieldConvention convention, String name) public virtual void test_of_lookupStandard(FixedCouponBondYieldConvention convention, string name) { assertEquals(FixedCouponBondYieldConvention.of(convention.name()), convention); }
public virtual void test_of_lookup_notFound() { assertThrows(() => FixedCouponBondYieldConvention.of("Rubbish"), typeof(System.ArgumentException)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test(dataProvider = "name") public void test_of_lookupLowerCase(FixedCouponBondYieldConvention convention, String name) public virtual void test_of_lookupLowerCase(FixedCouponBondYieldConvention convention, string name) { assertEquals(FixedCouponBondYieldConvention.of(name.ToLower(Locale.ENGLISH)), convention); }