Пример #1
0
        public void AddContainsAndRemoveWork()
        {
            var symbol     = new Symbol(SecurityIdentifier.GenerateBase(_symbol, Market.USA), _symbol);
            var collection = new PortfolioTargetCollection();
            var target     = new PortfolioTarget(symbol, 1);

            collection.Add(target);
            Assert.AreEqual(collection.Count, 1);
            Assert.IsTrue(collection.Contains(target));
            Assert.IsTrue(collection.Remove(target));
            Assert.AreEqual(collection.Count, 0);
        }