public void AddSetting_AddsSettingToListAndDict() { var dataStore = RCTestUtils.GetDataStore(); RemoteConfigDataManager dataManager = new RemoteConfigDataManager(); dataManager.AddSetting(RCTestUtils.rsListWithMetadata[0]); Assert.That(dataStore.rsKeyList.Contains(RCTestUtils.rsListWithMetadata[0])); var rs = dataStore.rsKeyList.Find(s => s.metadata.entityId == RCTestUtils.rsListWithMetadata[0].metadata.entityId); Assert.That(string.Equals(rs.rs.key, RCTestUtils.rsListWithMetadata[0].rs.key)); Assert.That(string.Equals(rs.rs.type, RCTestUtils.rsListWithMetadata[0].rs.type)); Assert.That(string.Equals(rs.rs.value, RCTestUtils.rsListWithMetadata[0].rs.value)); }