BindaTests.Extensions.GetCommentByAuthor C# (CSharp) Method

GetCommentByAuthor() public static method

public static GetCommentByAuthor ( this comments, string author ) : Comment
comments this
author string
return BindaTests.NeededObjects.Comment
        public static Comment GetCommentByAuthor(this IEnumerable<Comment> comments, string author)
        {
            return comments.Single(x => x.Author == author);
        }