public void IsSettingInRule_ReturnsFalseWhenSettingIsNotInRule() { var dataStore = RCTestUtils.GetDataStore(); dataStore.rulesList = new List <RuleWithSettingsMetadata>(RCTestUtils.rulesWithSettingsMetadata); RemoteConfigDataManager dataManager = new RemoteConfigDataManager(); Assert.That(!dataManager.IsSettingInRule(RCTestUtils.ruleOneId, "Fake Key")); }
public void IsSettingInRule_ReturnsTrueWhenSettingIsInRule() { var dataStore = RCTestUtils.GetDataStore(); dataStore.rulesList = new List <RuleWithSettingsMetadata>(RCTestUtils.rulesWithSettingsMetadata); RemoteConfigDataManager dataManager = new RemoteConfigDataManager(); Assert.That(dataManager.IsSettingInRule(RCTestUtils.ruleOneId, RCTestUtils.stringKeyEntityId)); }