Beispiel #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldLookupExistingMethodByName()
        public virtual void ShouldLookupExistingMethodByName()
        {
            foreach (HttpMethod method in HttpMethod.values())
            {
                assertEquals(method, HttpMethod.valueOfOrNull(method.ToString()));
            }
        }
Beispiel #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldLookupNonExistingMethodByName()
        public virtual void ShouldLookupNonExistingMethodByName()
        {
            assertNull(HttpMethod.valueOfOrNull("get"));
            assertNull(HttpMethod.valueOfOrNull("post"));
            assertNull(HttpMethod.valueOfOrNull("PoSt"));
            assertNull(HttpMethod.valueOfOrNull("WRONG"));
            assertNull(HttpMethod.valueOfOrNull(""));
        }
Beispiel #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldLookupNothingByNull()
        public virtual void ShouldLookupNothingByNull()
        {
            assertNull(HttpMethod.valueOfOrNull(null));
        }