Selaa lähdekoodia

2006-03-13 Sebastien Pouliot <[email protected]>

	* GraphicsPathTest.cs: Added new test cases for SetMarkers, 
	ClearMarkers, CloseFigure and CloseAllFigures on an empty path.


svn path=/trunk/mcs/; revision=57896
Sebastien Pouliot 20 vuotta sitten
vanhempi
sitoutus
bc0ec0ccda

+ 5 - 0
mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/ChangeLog

@@ -1,3 +1,8 @@
+2006-03-13  Sebastien Pouliot  <[email protected]>
+
+	* GraphicsPathTest.cs: Added new test cases for SetMarkers, 
+	ClearMarkers, CloseFigure and CloseAllFigures on an empty path.
+
 2006-01-27  Sebastien Pouliot  <[email protected]>
 
 	* GraphicsPathTest.cs: Removed "NotWorking" from existing Flatten 

+ 24 - 0
mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/GraphicsPathTest.cs

@@ -1264,5 +1264,29 @@ namespace MonoTests.System.Drawing.Drawing2D {
 		{
 			new GraphicsPath ().Warp (null, new RectangleF ());
 		}
+
+		[Test]
+		public void SetMarkers_EmptyPath ()
+		{
+			new GraphicsPath ().SetMarkers ();
+		}
+
+		[Test]
+		public void ClearMarkers_EmptyPath ()
+		{
+			new GraphicsPath ().ClearMarkers ();
+		}
+
+		[Test]
+		public void CloseFigure_EmptyPath ()
+		{
+			new GraphicsPath ().CloseFigure ();
+		}
+
+		[Test]
+		public void CloseAllFigures_EmptyPath ()
+		{
+			new GraphicsPath ().CloseAllFigures ();
+		}
 	}
 }