コード例 #1
0
 public void Ctor_Size()
 {
     var size = new Rect(new Point(4, 4), new Size(10, 10));
     var printDocumentBackground = new PrintDocumentBackground(new StackPanel(), size);
     Assert.That(printDocumentBackground.Size, Is.EqualTo(size));
 }
コード例 #2
0
 public void Ctor_Element()
 {
     Panel p = new StackPanel();
     var printDocumentBackground = new PrintDocumentBackground(p, Rect.Empty);
     Assert.That(printDocumentBackground.Element, Is.EqualTo(p));
 }