Example #1
0
//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(BillYieldConvention convention, String name)
        public virtual void test_of_lookupStandard(BillYieldConvention convention, string name)
        {
            assertEquals(BillYieldConvention.of(convention.name()), convention);
        }
Example #2
0
//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(BillYieldConvention convention, String name)
        public virtual void test_of_lookupLowerCase(BillYieldConvention convention, string name)
        {
            assertEquals(BillYieldConvention.of(name.ToLower(Locale.ENGLISH)), convention);
        }
Example #3
0
 public virtual void test_of_lookup_null()
 {
     assertThrows(() => BillYieldConvention.of(null), typeof(System.ArgumentException));
 }
Example #4
0
//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_lookup(BillYieldConvention convention, String name)
        public virtual void test_of_lookup(BillYieldConvention convention, string name)
        {
            assertEquals(BillYieldConvention.of(name), convention);
        }
Example #5
0
 public virtual void test_of_lookup_notFound()
 {
     assertThrows(() => BillYieldConvention.of("Rubbish"), typeof(System.ArgumentException));
 }