//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())); } }
private static IDictionary <string, HttpMethod> IndexMethodsByName() { HttpMethod[] methods = HttpMethod.values(); IDictionary <string, HttpMethod> result = new Dictionary <string, HttpMethod>(methods.Length * 2); foreach (HttpMethod method in methods) { result[method.name()] = method; } return(unmodifiableMap(result)); }