コード例 #1
0
 public void GetKeyValueFromConnectionString_ShouldThrow()
 {
     Assert.Throws <ArgumentNullException>(() => AzureStorageUtils.GetKeyValueFromConnectionString(null, null));
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        public void GetKeyValueFromConnectionString_ShouldReturnExpected()
        {
            var result = AzureStorageUtils.GetKeyValueFromConnectionString("aa=aa;aaa=aa", "aa");

            Assert.Equal("aa", result);
        }