public void TestNegativeCaseGetConnectionString() { var propertyKey = "KeyToNonExistentAppSetting"; var properties = new [] { new DescriptorProperty { Name = propertyKey, Value = "NonExistentAppSetting", }, }; var value = Utilities.GetConfigString(propertyKey, properties); Assert.IsNullOrEmpty(value); }
public void TestGetConnectionString() { var propertyKey = "foxyConnectionString"; var properties = new [] { new DescriptorProperty { Name= propertyKey, Value="TestConnectionString", } }; var connectionString = Utilities.GetConfigString(propertyKey, properties); Assert.AreEqual("The quick brown fox", connectionString); }