public void ShouldNotSupportNonAddsedMediaTypeWithoutWildcard() { var map = new MediaTypeFormatMap(); map.Add("text/html", "html"); Assert.That(map.SupportsMediaType("text/plain"), Is.False); }
public void ShouldSupportWildCardedMediaType() { var map = new MediaTypeFormatMap(); map.Add("text/html", "html"); Assert.That(map.SupportsMediaType("*/*"), Is.True); }
public void EmptyMapShouldNotHaveAnyMediaTypes() { var map = new MediaTypeFormatMap(); Assert.That(map.SupportsMediaType("*/*"), Is.False); }