Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(expected = MediaTypeNotSupportedException.class) public void canNotGetInputFormatBasedOnWildcardMediaType() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void CanNotGetInputFormatBasedOnWildcardMediaType()
        {
            InputFormat format = _repository.inputFormat(MediaType.WILDCARD_TYPE);

            format.ReadValue("foo");
            fail("Got InputFormat based on wild card type: " + format);
        }