예제 #1
0
        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"));
        }
예제 #2
0
        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));
        }