Exemple #1
0
        public void op_GetEnumerator()
        {
            var shard = new DataShard();
            shard.Entries.Add(new KeyStringDictionary
                                  {
                                      { "name", "value" }
                                  });

            foreach (var entry in shard)
            {
                Assert.Equal("value", entry["name"]);
            }
        }
Exemple #2
0
        public void op_AsOfT()
        {
            var shard = new DataShard();
            shard.Entries.Add(new KeyStringDictionary
                                  {
                                      { "name", "value" }
                                  });

            foreach (var entry in shard.As<TestDataEntry>())
            {
                Assert.Equal("value", entry.Name);
            }
        }