コード例 #1
0
        public void Collections_SymbolOrderBook_update_test()
        {
            SymbolOrderBook book = new SymbolOrderBook("RTS-12.13_FT", 5);

            book.Update(0, 145000, 100, 145010, 50);

            Assert.AreEqual(145000, book.GetBidPrice(0));
            Assert.AreEqual(100, book.GetBidVolume(0));
            Assert.AreEqual(145010, book.GetOfferPrice(0));
            Assert.AreEqual(50, book.GetOfferVolume(0));
        }