public void ConnectionStringParametersWithQuoteEscapingNegativeTest(string connectionString) { var exception = Assert.Throws <ArgumentException>(() => AzureServiceTokenProviderFactory.ParseConnectionString(connectionString)); Assert.Contains(Constants.NotInProperFormatError, exception.ToString()); }
public void ConnectionStringParametersWithQuoteEscapingPositiveTest(string connectionString, string setting, string expectedSettingValue) { var connectionSettings = AzureServiceTokenProviderFactory.ParseConnectionString(connectionString); Assert.Equal(expectedSettingValue, connectionSettings[setting]); }