Revert "Merge pull request #5330 from alexanderkyte/dedup_mkbundle"
[mono.git] / mcs / class / System.Web / Test / System.Web.Caching / CacheItemPriorityQueueTest.cs
index 3e1c6d2e5d4ee69f228291c9a52fc90fd40b3618..b9754e7e84ae71fc7f1fe99212851ee93e7d3546 100644 (file)
@@ -91,10 +91,12 @@ namespace MonoTests.System.Web.Caching
 
                static CacheItemPriorityQueueTest ()
                {
-                       // Assumes this is compiled into mcs/class/lib/<profile>
-                       string class_dir = Directory.GetParent (Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location)).Parent.FullName;
-                       string system_web_dir = Path.Combine (class_dir, "System.Web", "Test", "System.Web.Caching");
-                       dataDir = Path.Combine (system_web_dir, DATA_DIR);
+                       dataDir =
+                               Path.Combine (
+                                       Path.Combine (
+                                               Path.Combine (Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location), "Test"),
+                                               "System.Web.Caching"),
+                                       DATA_DIR);
                }
                
                void RunTest (string testsFileName, string listFileName)