/// <summary>
        /// Assigns a category or group
        /// </summary>
        /// <param name="category"><see cref="Category"/></param>
        /// <returns>A <see cref="ExtentTest"/> object</returns>
        public ExtentTest AssignCategory(params string[] category)
        {
            if (category == null || category.Length == 0)
            {
                return(this);
            }

            category.ToList().Where(c => !string.IsNullOrEmpty(c)).ToList().ForEach(c =>
            {
                var objCategory = new Category(c.Replace(" ", ""));
                _test.CategoryContext().Add(objCategory);

                _extent.AssignCategory(_test, objCategory);
            });

            return(this);
        }