Move tests projects to the parent dir and include in them Mono tests.
[mono.git] / mcs / class / System.Drawing / Test / System.Drawing.Drawing2D / TestHatchBrush.cs
index 41bfa25142bd11feedf390597639cbab56fc281f..04454eb09d92978d61c043aac33651c2c55c4f33 100644 (file)
@@ -121,7 +121,7 @@ namespace MonoTests.System.Drawing.Drawing2D
                        HatchStyles ();
 
                        // save the drawing
-                       string file = getDir () + "TestHatchBrush.png";
+                       string file =  "TestHatchBrush" + getOutSufix() + ".png";
                        bmp.Save (file, ImageFormat.Png);
                }
 
@@ -608,17 +608,12 @@ namespace MonoTests.System.Drawing.Drawing2D
                        currentTop = top;
                }
 
-               /* Get the right directory depending on the runtime */
-               private string getDir ()
-               {
-                       string dir;
-
-                       if (Environment.GetEnvironmentVariable ("MSNet") == null)
-                               dir = "mono/";
-                       else
-                               dir = "MSNet/";
-
-                       return dir;
+               internal string getOutSufix()
+               {                       
+                       if (Environment.GetEnvironmentVariable("MSNet")==null)
+                               return "-mono";
+                                       
+                       return "";
                }
        }
 }