public void ParseConnectionStringTests(string connectionString, string url, string key) { connectionString = string.Format(connectionString, $"AccessKey={key}"); // this is so that credscan is not triggered. var(uri, credential) = WebPubSubServiceClient.ParseConnectionString(connectionString); Assert.AreEqual(new Uri(url), uri); Assert.AreEqual(key, credential.Key); }
public void ParseConnectionStringTests(string connectionString, string url) { connectionString = string.Format(connectionString, FakeAccessKey); var(uri, credential) = WebPubSubServiceClient.ParseConnectionString(connectionString); Assert.AreEqual(new Uri(url), uri); Assert.AreEqual(FakeAccessKey, credential.Key); }