public FindBoolean ( string settingName, bool defaultValue ) : bool | ||
settingName | string | The name of the setting. |
defaultValue | bool | The default value of the setting if it is not found. |
return | bool |
public void FindBooelan_WithInvalidSetting_ReturnsDefault() { var helper = new RuleSettingsHelper(); Assert.IsFalse(helper.FindBoolean("good", false)); Assert.IsTrue(helper.FindBoolean("good", true)); }
public void FindBooelan_WithValidSetting_ReturnsValue() { var helper = new RuleSettingsHelper(); var expected = true; var defaultValue = false; helper.Add("good", expected); Assert.AreEqual(expected, helper.FindBoolean("good", defaultValue)); }
public void FindBooelan_WithValidSetting_ReturnsValue() { var helper = new RuleSettingsHelper(); var expected = true; var defaultValue = false; helper.Add("good", expected); Assert.AreEqual(expected, helper.FindBoolean("good", defaultValue)); }
public void FindBooelan_WithInvalidSetting_ReturnsDefault() { var helper = new RuleSettingsHelper(); Assert.IsFalse(helper.FindBoolean("good", false)); Assert.IsTrue(helper.FindBoolean("good", true)); }