public void CreateAliasTypeInfo() { var result = new AliasTypeInfo("TokenType", TypeInfo.Int); Assert.AreEqual("TokenType", result.Name); Assert.AreSame(TypeInfo.Int, result.TypeInfo); }
/// <summary> /// Defines an alias for a type. /// </summary> /// <param name="alias">The alias to define.</param> /// <param name="typeName">The name of the type to create an alias for.</param> /// <returns></returns> public void DefineAlias(string alias, string typeName) { var alInfo = new AliasTypeInfo(typeName); TypeTable.Add(alias, alInfo); }