public void TryParseSingle(string name, string arg)
        {
            Assert.AreEqual(true, GenericTypeArgument.TryParseBracketedList(name, 0, 1, out var args));
            var typeArgument = args.Single();

            Assert.AreEqual(arg, typeArgument.MetadataName);
            Assert.AreEqual(null, typeArgument.TypeArguments);
        }
        public void TryGetGenericWhenKeyValuePair(string name, string arg0, string arg1)
        {
            Assert.AreEqual(true, GenericTypeArgument.TryParseBracketedList(name, 0, 2, out var args));
            var typeArgument = args[0];

            Assert.AreEqual(arg0, typeArgument.MetadataName);
            Assert.AreEqual(null, typeArgument.TypeArguments);
            typeArgument = args[1];
            Assert.AreEqual(arg1, typeArgument.MetadataName);
            Assert.AreEqual(null, typeArgument.TypeArguments);
        }
 public void TryParseInvalid(string text)
 {
     Assert.AreEqual(false, GenericTypeArgument.TryParseBracketedList(text, 0, 1, out _));
 }