Merge pull request #3796 from ntherning/windows-backend-for-MemoryMappedFile
[mono.git] / mcs / class / System.Configuration / Test / Util / TestUtil.cs
index 585271a2fe841c7834510b30cddeba3f20ec4167..497a8a8081da1ee056ebed31b4bb34427ee2c5b3 100644 (file)
@@ -64,29 +64,16 @@ namespace MonoTests.System.Configuration.Util {
                        }
                }
 
-               public static string DotNetVersion {
+               public static string ThisApplicationPath {
                        get {
-#if NET_4_5
-                               return "net_4_5";
-#elif NET_4_0
-                               return "net_4_0";
-#else
-                               return "net_2_0";
-#endif
-                       }
-               }
-
-               public static string ThisDllName {
-                       get {
-                               var asm = Assembly.GetCallingAssembly ();
-                               return Path.GetFileName (asm.Location);
+                               var asm = Assembly.GetEntryAssembly ();
+                               return asm.Location;
                        }
                }
 
                public static string ThisConfigFileName {
                        get {
-                               var asm = Assembly.GetCallingAssembly ();
-                               var exe = Path.GetFileName (asm.Location);
+                               var exe = Path.GetFileName (ThisApplicationPath);
                                return exe + ".config";
                        }
                }