コード例 #1
0
        public void HasRules_CorrectlyReturnsFalseIfThereAreNoRules()
        {
            var dataStore = RCTestUtils.GetDataStore();
            RemoteConfigDataManager dataManager = new RemoteConfigDataManager();

            Assert.That(dataManager.HasRules() == false);
        }
コード例 #2
0
        public void HasRules_CorrectlyReturnsTrueIfThereAreRules()
        {
            var dataStore = RCTestUtils.GetDataStore();

            dataStore.rulesList = new List <RuleWithSettingsMetadata>(RCTestUtils.rulesWithSettingsMetadata);
            RemoteConfigDataManager dataManager = new RemoteConfigDataManager();

            Assert.That(dataManager.HasRules() == true);
        }