@@ -151,5 +151,43 @@ public void ColorAndThicknessDefaultOptions()
151151 p => Assert . Equal ( this . path1 , p . Path ) ,
152152 p => Assert . Equal ( this . path2 , p . Path ) ) ;
153153 }
154+
155+ [ Fact ]
156+ public void JointAndEndCapStyle ( )
157+ {
158+ this . operations . Draw ( new DrawingOptions ( ) , this . pen . StrokeFill , 10 , this . pathCollection ) ;
159+ IEnumerable < DrawPathProcessor > processors = this . VerifyAll < DrawPathProcessor > ( ) ;
160+
161+ Assert . All ( processors , p =>
162+ {
163+ Assert . NotEqual ( this . shapeOptions , p . Options . ShapeOptions ) ;
164+ Assert . Equal ( this . pen . JointStyle , p . Pen . JointStyle ) ;
165+ Assert . Equal ( this . pen . EndCap , p . Pen . EndCap ) ;
166+ } ) ;
167+
168+ Assert . Collection (
169+ processors ,
170+ p => Assert . Equal ( this . path1 , p . Path ) ,
171+ p => Assert . Equal ( this . path2 , p . Path ) ) ;
172+ }
173+
174+ [ Fact ]
175+ public void JointAndEndCapStyleDefaultOptions ( )
176+ {
177+ this . operations . Draw ( this . pen . StrokeFill , 10 , this . pathCollection ) ;
178+ IEnumerable < DrawPathProcessor > processors = this . VerifyAll < DrawPathProcessor > ( ) ;
179+
180+ Assert . All ( processors , p =>
181+ {
182+ Assert . Equal ( this . shapeOptions , p . Options . ShapeOptions ) ;
183+ Assert . Equal ( this . pen . JointStyle , p . Pen . JointStyle ) ;
184+ Assert . Equal ( this . pen . EndCap , p . Pen . EndCap ) ;
185+ } ) ;
186+
187+ Assert . Collection (
188+ processors ,
189+ p => Assert . Equal ( this . path1 , p . Path ) ,
190+ p => Assert . Equal ( this . path2 , p . Path ) ) ;
191+ }
154192 }
155193}
0 commit comments