コード例 #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_lookupLowerCase(BuySell convention, String name)
        public virtual void test_of_lookupLowerCase(BuySell convention, string name)
        {
            assertEquals(BuySell.of(name.ToLower(Locale.ENGLISH)), convention);
        }
コード例 #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(BuySell convention, String name)
        public virtual void test_of_lookup(BuySell convention, string name)
        {
            assertEquals(BuySell.of(name), convention);
        }
コード例 #3
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(BuySell convention, String name)
        public virtual void test_toString(BuySell convention, string name)
        {
            assertEquals(convention.ToString(), name);
        }
コード例 #4
0
 //-------------------------------------------------------------------------
 public virtual void test_ofBuy()
 {
     assertEquals(BuySell.ofBuy(true), BuySell.BUY);
     assertEquals(BuySell.ofBuy(false), BuySell.SELL);
 }
コード例 #5
0
 public virtual void test_of_lookup_null()
 {
     assertThrowsIllegalArg(() => BuySell.of(null));
 }
コード例 #6
0
 public virtual void test_of_lookup_notFound()
 {
     assertThrowsIllegalArg(() => BuySell.of("Rubbish"));
 }