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"))); }
static bool IsRollingIndex(StringDictionary parts) { return(parts.Contains(Keys.Rolling) && parts[Keys.Rolling].ToBool()); }