コード例 #1
0
        public void Initialize_WithCustomEqualityComparer()
        {
            var dataStore = new SimpleDataStore <string, int?> (StringComparer.InvariantCultureIgnoreCase);

            dataStore.Add("a", 1);

            Assert.That(dataStore.ContainsKey("a"));
            Assert.That(dataStore.ContainsKey("A"));
        }
コード例 #2
0
 public void ContainsKey_True()
 {
     Assert.That(_store.ContainsKey("a"));
     Assert.That(_store.ContainsKey("b"));
 }