public static Comment AddComment(this IPartHolder holder) { var comment = new Comment(); holder.Add(comment); return comment; }
public void accept_visitor() { var visitor = MockRepository.GenerateMock<ITestVisitor>(); var comment = new Comment(); comment.AcceptVisitor(visitor); visitor.AssertWasCalled(x => x.WriteComment(comment)); }
private void CommentPlaying_Loaded(object sender, RoutedEventArgs e) { var comment = new Comment( "I ran into a scenario I needed - namely I had another layer of abstract class between the concrete type and the base generic abstract type. Updated patch attached."); var section = new Section("Math"); var node = new CommentEditorNode(null, section, comment); panel.Children.Add(node); }
public void WriteComment(Comment comment) { _section.Add(comment); }
public void WriteComment(Comment comment) { _nodes.Peek().AddChild(Comment.COMMENT).WithFormattedText(comment.Text); }
public bool Equals(Comment obj) { if (ReferenceEquals(null, obj)) return false; if (ReferenceEquals(this, obj)) return true; return Equals(obj.Text, Text); }
public CommentTag(Comment comment) : base("div") { AddClass("Comment"); Add("span").AddClass("comment-text").Text(comment.Text); }