Ejemplo n.º 1
0
 public virtual void test_of_lookup_null()
 {
     assertThrowsIllegalArg(() => PutCall.of(null));
 }
Ejemplo n.º 2
0
 public virtual void test_of_lookup_notFound()
 {
     assertThrowsIllegalArg(() => PutCall.of("Rubbish"));
 }
Ejemplo 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(PutCall convention, String name)
        public virtual void test_of_lookupLowerCase(PutCall convention, string name)
        {
            assertEquals(PutCall.of(name.ToLower(Locale.ENGLISH)), convention);
        }
Ejemplo 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(PutCall convention, String name)
        public virtual void test_of_lookup(PutCall convention, string name)
        {
            assertEquals(PutCall.of(name), convention);
        }
Ejemplo 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(PutCall convention, String name)
        public virtual void test_toString(PutCall convention, string name)
        {
            assertEquals(convention.ToString(), name);
        }
Ejemplo n.º 6
0
 //-------------------------------------------------------------------------
 public virtual void test_ofPut()
 {
     assertEquals(PutCall.ofPut(true), PutCall.PUT);
     assertEquals(PutCall.ofPut(false), PutCall.CALL);
 }