상속: ITestPart
예제 #1
0
        public static Comment AddComment(this IPartHolder holder)
        {
            var comment = new Comment();
            holder.Add(comment);

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

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