public void DeleteSettingFromRule_ShouldRemoveRightSettingsFromRightRule() { var dataStore = RCTestUtils.GetDataStore(); dataStore.rulesList = new List <RuleWithSettingsMetadata>(RCTestUtils.rulesWithSettingsMetadata); dataStore.rsKeyList = new List <RsKvtData>(RCTestUtils.rsListWithMetadata); RemoteConfigDataManager dataManager = new RemoteConfigDataManager(); dataManager.DeleteSettingFromRule(RCTestUtils.ruleOneId, RCTestUtils.intKeyEntityId); Assert.That(!dataStore.rulesList.Find(r => r.id == RCTestUtils.ruleOneId).value.Contains(RCTestUtils.rsListWithMetadata[1])); Assert.That(dataStore.updatedRulesIDs.Contains(RCTestUtils.ruleOneId)); }