Beispiel #1
0
 public virtual void test_of_lookup_null()
 {
     assertThrows(() => PriceType.of(null), typeof(System.ArgumentException));
 }
Beispiel #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_lookup(PriceType convention, String name)
        public virtual void test_of_lookup(PriceType convention, string name)
        {
            assertEquals(PriceType.of(name), convention);
        }
Beispiel #3
0
 public virtual void test_of_lookup_notFound()
 {
     assertThrows(() => PriceType.of("Rubbish"), typeof(System.ArgumentException));
 }
Beispiel #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_toString(PriceType convention, String name)
        public virtual void test_toString(PriceType convention, string name)
        {
            assertEquals(convention.ToString(), name);
        }