public void DrawRectangle_Stroke_2px() { UserControl userControl = new UserControl(); userControl.Width = 200; userControl.Height = 200; DrawRectangleControl testControl = new DrawRectangleControl(); testControl.Pen = new Pen(new SolidColorBrush(Colors.Red), 2); userControl.Content = testControl; this.RenderToFile(userControl); this.CompareImages(); }