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"]); } }
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); } }