public void op_Shard_IIdentifyShard() { var identifier = new ShardByValue("one"); var sheet = new DerivedDataSheet(); foreach (var shard in sheet.Shard(identifier)) { Assert.Equal("1", shard.Title); } }
public void op_IdentifyShard_KeyStringDictionary_whenColumnMissing() { const string expected = "value"; var obj = new ShardByValue("foo"); var entry = new KeyStringDictionary { { "bar", expected } }; Assert.Throws <KeyNotFoundException>(() => obj.IdentifyShard(entry)); }
public void op_IdentifyShard_KeyStringDictionary_whenColumnMissing() { const string expected = "value"; var obj = new ShardByValue("foo"); var entry = new KeyStringDictionary { { "bar", expected } }; Assert.Throws<KeyNotFoundException>(() => obj.IdentifyShard(entry)); }
public void op_IdentifyShard_KeyStringDictionary(string expected, string value) { var obj = new ShardByValue("example"); var entry = new KeyStringDictionary { { "example", value } }; var actual = obj.IdentifyShard(entry); Assert.Equal(expected, actual); }
public void op_IdentifyShard_KeyStringDictionaryNull() { var obj = new ShardByValue("example"); Assert.Throws <ArgumentNullException>(() => obj.IdentifyShard(null)); }
public void op_IdentifyShard_KeyStringDictionaryNull() { var obj = new ShardByValue("example"); Assert.Throws<ArgumentNullException>(() => obj.IdentifyShard(null)); }