Пример #1
0
        public void RemoveRuleFromAddedRuleIDs_RemovesRuleFromAddedRules()
        {
            var dataStore = RCTestUtils.GetDataStore();

            dataStore.addedRulesIDs = new List <string>(RCTestUtils.updatedRuleIDs);
            RemoteConfigDataManager dataManager = new RemoteConfigDataManager();

            dataManager.RemoveRuleFromAddedRuleIDs(RCTestUtils.updatedRuleIDs[0]);
            Assert.That(dataStore.addedRulesIDs.Count == 2);
            Assert.That(!dataStore.addedRulesIDs.Contains(RCTestUtils.updatedRuleIDs[0]));
        }