public void TryParseFailsInvalidProperties()
        {
            const string       value = "SPY WhatEver";
            SecurityIdentifier sid;

            Assert.IsFalse(SecurityIdentifier.TryParse(value, out sid));
        }
        public void ParsesFromStringCorrectly()
        {
            const string       value = "SPY R735QTJ8XC9X";
            SecurityIdentifier sid;

            Assert.IsTrue(SecurityIdentifier.TryParse(value, out sid));
            Assert.AreEqual(sid.ToString(), value);
        }
        public void ParsesFromStringFastEnough()
        {
            const string value = "SPY R735QTJ8XC9X";

            var stopwatch = Stopwatch.StartNew();

            for (var i = 0; i < 1000000; i++)
            {
                SecurityIdentifier sid;
                SecurityIdentifier.TryParse(value, out sid);
            }
            stopwatch.Stop();
            Console.WriteLine("Elapsed: " + stopwatch.Elapsed);

            Assert.Less(stopwatch.Elapsed, TimeSpan.FromSeconds(2));
        }