Beispiel #1
0
 public virtual void test_of_lookup_null()
 {
     assertThrowsIllegalArg(() => FailureReason.of(null));
 }
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_lookupLowerCase(FailureReason convention, String name)
        public virtual void test_of_lookupLowerCase(FailureReason convention, string name)
        {
            assertEquals(FailureReason.of(name.ToLower(Locale.ENGLISH)), convention);
        }
Beispiel #3
0
 public virtual void test_of_lookup_notFound()
 {
     assertThrowsIllegalArg(() => FailureReason.of("Rubbish"));
 }
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_of_lookup(FailureReason convention, String name)
        public virtual void test_of_lookup(FailureReason convention, string name)
        {
            assertEquals(FailureReason.of(name), convention);
        }