Esempio n. 1
0
        public void ClearRuleIDs_ClearsAllLists()
        {
            var dataStore = RCTestUtils.GetDataStore();

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

            dataManager.ClearRuleIDs();
            Assert.That(dataStore.updatedRulesIDs.Count == 0);
            Assert.That(dataStore.addedRulesIDs.Count == 0);
            Assert.That(dataStore.deletedRulesIDs.Count == 0);
        }