コード例 #1
0
        public void ContainsTest()
        {
            var objectDictionary = new Dictionary <string, object>();
            var stringDictionary = new StringDictionary(objectDictionary);

            Assert.False(stringDictionary.ContainsKey("key"));
            Assert.False(stringDictionary.Contains(new KeyValuePair <string, string>("key", "value")));
            objectDictionary["key"] = "value";
            Assert.True(stringDictionary.ContainsKey("key"));
            Assert.True(stringDictionary.Contains(new KeyValuePair <string, string>("key", "value")));
        }
コード例 #2
0
 static bool IsRollingIndex(StringDictionary parts)
 {
     return(parts.Contains(Keys.Rolling) && parts[Keys.Rolling].ToBool());
 }