Inheritance: ITestPart
Beispiel #1
0
        public static Comment AddComment(this IPartHolder holder)
        {
            var comment = new Comment();
            holder.Add(comment);

            return comment;
        }
Beispiel #2
0
        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);
        }
Beispiel #4
0
 public void WriteComment(Comment comment)
 {
     _section.Add(comment);
 }
Beispiel #5
0
 public void WriteComment(Comment comment)
 {
     _nodes.Peek().AddChild(Comment.COMMENT).WithFormattedText(comment.Text);
 }
Beispiel #6
0
 public bool Equals(Comment obj)
 {
     if (ReferenceEquals(null, obj)) return false;
     if (ReferenceEquals(this, obj)) return true;
     return Equals(obj.Text, Text);
 }
Beispiel #7
0
 public CommentTag(Comment comment)
     : base("div")
 {
     AddClass("Comment");
     Add("span").AddClass("comment-text").Text(comment.Text);
 }