示例#1
0
        public void NextOptionSymbol_CreatesOptionSymbol_WithRequestedMarket()
        {
            for (int i = 0; i < 50; i++)
            {
                var minExpiry = new DateTime(2000, 01, 01);
                var maxExpiry = new DateTime(2001, 01, 01);
                var price     = randomValueGenerator.NextPrice(SecurityType.Equity, Market.USA, 100m, 100m);
                var symbol    = randomValueGenerator.NextOption(Market.USA, minExpiry, maxExpiry, price, 50);

                Assert.AreEqual(Market.USA, symbol.ID.Market);
            }
        }