Esempio n. 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()));
            }
        }
Esempio n. 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(""));
        }
Esempio n. 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));
        }