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

            return comment;
        }
Esempio n. 2
0
        public void accept_visitor()
        {
            var visitor = MockRepository.GenerateMock<ITestVisitor>();
            var comment = new Comment();
            comment.AcceptVisitor(visitor);

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