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)); }
public void Ctor_Element() { Panel p = new StackPanel(); var printDocumentBackground = new PrintDocumentBackground(p, Rect.Empty); Assert.That(printDocumentBackground.Element, Is.EqualTo(p)); }