Get() public method

public Get ( int begSeqNo, int endSeqNo, List messages ) : bool
begSeqNo int
endSeqNo int
messages List
return bool
コード例 #1
0
ファイル: MemoryStoreTest.cs プロジェクト: nisbus/quickfixn
        public void GetTest()
        {
            MemoryStore store = new MemoryStore();
            store.Set(1, "dude");
            store.Set(2, "pude");
            store.Set(3, "ok");
            store.Set(4, "ohai");
            var msgs = new List<string>();
            store.Get(2, 3, msgs);
            var expected = new List<string>() { "pude", "ok" };
            Assert.That(msgs, Is.EqualTo(expected));

            msgs = new List<string>();
            store.Get(5, 6, msgs);
            Assert.That(msgs, Is.Empty);
        }