Exemplo n.º 1
0
        /// <summary>
        /// Returns attribute as code.
        /// </summary>
        public static string GetAttributeCode(ref IMochaAttribute attr)
        {
            string code;

            code = $"{attr.Name}:{attr.Value};";
            return(code);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Append attribute code to code.
 /// </summary>
 /// <param name="code">Code.</param>
 /// <param name="attr">Attribute to add code.</param>
 public static void AppendAttribute(ref string code, ref IMochaAttribute attr)
 {
     code += GetAttributeCode(ref attr);
 }