public void OnSuccess(Key key, Record record) { if (!parent.AssertRecordFound(key, record)) { parent.NotifyCompleted(); return; } IList list = record.GetList(binName); long size = (long)list[0]; if (!parent.AssertEquals(2, size)) { parent.NotifyCompleted(); return; } long val = (long)list[1]; if (!parent.AssertEquals(77, val)) { parent.NotifyCompleted(); return; } size = (long)list[2]; parent.AssertEquals(1, size); parent.NotifyCompleted(); }
public void OnSuccess(Key key, Record record) { if (!parent.AssertRecordFound(key, record)) { parent.NotifyCompleted(); return; } IList results = record.GetList(binName); long size = (long)results[0]; parent.AssertEquals(3, size); IList list = (IList)results[1]; KeyValuePair <object, object> entry = (KeyValuePair <object, object>)list[0]; parent.AssertEquals("c", entry.Key); parent.AssertEquals(3L, entry.Value); parent.NotifyCompleted(); }