public void Create_InvalidWebRequestUriScheme_Throws(string scheme) { var uri = new Uri($"{scheme}://example.com/folder/resource.txt"); Assert.Throws<NotSupportedException>(() => WebRequest.Create(uri)); } }