/// <summary> /// Returns attribute as code. /// </summary> public static string GetAttributeCode(ref IMochaAttribute attr) { string code; code = $"{attr.Name}:{attr.Value};"; return(code); }
/// <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); }