public void GetKeyValueFromConnectionString_ShouldThrow() { Assert.Throws <ArgumentNullException>(() => AzureStorageUtils.GetKeyValueFromConnectionString(null, null)); }
public void GetKeyValueFromConnectionString_ShouldThrow2(string connectionString, string key) { var ex = Assert.Throws <ArgumentException>(() => AzureStorageUtils.GetKeyValueFromConnectionString(connectionString, key)); Assert.Equal("Connection string in wrong format", ex.Message); }
public void GetKeyValueFromConnectionString_ShouldReturnExpected() { var result = AzureStorageUtils.GetKeyValueFromConnectionString("aa=aa;aaa=aa", "aa"); Assert.Equal("aa", result); }