Exemplo n.º 1
0
 public virtual void test_of_lookup_null()
 {
     assertThrowsIllegalArg(() => LongShort.of(null));
 }
Exemplo n.º 2
0
 public virtual void test_of_lookup_notFound()
 {
     assertThrowsIllegalArg(() => LongShort.of("Rubbish"));
 }
Exemplo n.º 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_of_lookupLowerCase(LongShort convention, String name)
        public virtual void test_of_lookupLowerCase(LongShort convention, string name)
        {
            assertEquals(LongShort.of(name.ToLower(Locale.ENGLISH)), convention);
        }
Exemplo n.º 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(LongShort convention, String name)
        public virtual void test_of_lookup(LongShort convention, string name)
        {
            assertEquals(LongShort.of(name), convention);
        }
Exemplo n.º 5
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(LongShort convention, String name)
        public virtual void test_toString(LongShort convention, string name)
        {
            assertEquals(convention.ToString(), name);
        }
Exemplo n.º 6
0
 //-------------------------------------------------------------------------
 public virtual void test_ofLong()
 {
     assertEquals(LongShort.ofLong(true), LongShort.LONG);
     assertEquals(LongShort.ofLong(false), LongShort.SHORT);
 }