public void Parse_complex()
        {
            var text   = "<@U123|fred> login as {user}";
            var result = new SlackMessageParser(text).Parse();

            output.WriteLine(result.ToString());
        }
        public void Parse()
        {
            var text   = "<@U123|fred> hello";
            var result = SlackMessageParser.Parse(text);

            Assert.Equal(2, result.Count);

            Assert.Equal(typeof(SlackID), result[0].NodeType);
            var id = (SlackID)result[0];

            Assert.Equal(id.Type, SlackID.IDType.ID);
            Assert.Equal("U123", id.ID);
            Assert.Equal("fred", id.Name);

            Assert.Equal(typeof(WordNode), result[1].NodeType);
            var word = (WordNode)result[1];

            Assert.Equal("hello", word.Text);
        }