public void Add_basic_credential_to_cache() { var cache = new HttpCredentialCache { new BasicCredentials(new Uri("http://example.org"), username: "", password: "") }; Assert.Equal(1, cache.Count()); }