示例#1
0
        public void AppendsCustomDataTypeName_ToSecurityIdentifierSymbol()
        {
            const string ticker    = "ticker";
            var          algorithm = Algorithm();

            var security = algorithm.AddData <Quandl>(ticker);

            Assert.AreEqual(ticker.ToUpperInvariant(), security.Symbol.Value);
            Assert.AreEqual($"{ticker.ToUpperInvariant()}.{typeof(Quandl).Name}", security.Symbol.ID.Symbol);
            Assert.AreEqual(SecurityIdentifier.GenerateBaseSymbol(typeof(Quandl), ticker), security.Symbol.ID.Symbol);
        }