public void GetConfigurationValue_EmptyKeyName_Failure() { ConfigurationValue oNewValue; var res = ConfigurationValue.GetConfigurationValue(out oNewValue, _mockServer, ""); Assert.IsFalse(res.Success, "Call to GetConfigurationValue static method did not fail with empty key name"); }
public void GetConfigurationValue_NullConnectionServer_Failure() { ConfigurationValue oNewValue; var res = ConfigurationValue.GetConfigurationValue(out oNewValue, null, "dummy"); Assert.IsFalse(res.Success, "Call to GetConfigurationValue static method did not fail with null ConnectionServer"); }
public void StaticCallFailure_GetConfigurationValue() { ConfigurationValue oNewValue; List <ConfigurationValue> oValues; WebCallResult res = ConfigurationValue.GetConfigurationValues(_connectionServer, out oValues); Assert.IsTrue(res.Success, "Failed to fetch list of all configuraiton values"); Assert.IsTrue(oValues.Count > 0, "No configuration values returned from system fetch"); string strFullName = oValues[0].FullName; res = ConfigurationValue.GetConfigurationValue(out oNewValue, _connectionServer, "bogus"); Assert.IsFalse(res.Success, "Call to GetConfigurationValue static method did not fail with bogus key name"); res = ConfigurationValue.GetConfigurationValue(out oNewValue, _connectionServer, strFullName); Assert.IsTrue(res.Success, "Static method to fetch configuration value failed for valid key name:" + res); }