[hyena] Add 'make test' rule from every assembly



commit f222848d2686baa807699d2d158a3a56c6ad0c35
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Fri Mar 19 11:21:15 2010 -0700

    Add 'make test' rule from every assembly
    
    Won't work for assemblies not defined as having tests in
    tests/Makefile.am, but convenient for others.  Also, make some
    properties static in TestBase.

 src/Hyena/Hyena/Tests/TestBase.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Hyena/Hyena/Tests/TestBase.cs b/src/Hyena/Hyena/Tests/TestBase.cs
index 3c263b6..f008d23 100644
--- a/src/Hyena/Hyena/Tests/TestBase.cs
+++ b/src/Hyena/Hyena/Tests/TestBase.cs
@@ -70,13 +70,13 @@ namespace Hyena.Tests
 
     public abstract class TestBase
     {
-        private string bin_dir;
-        public string BinDir {
+        private static string bin_dir;
+        public static string BinDir {
             get { return bin_dir ?? (bin_dir = Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location)); }
         }
 
-        private string tests_dir;
-        public string TestsDir {
+        private static string tests_dir;
+        public static string TestsDir {
             get { return tests_dir ?? (tests_dir = Path.Combine (Path.GetDirectoryName (BinDir), "tests")); }
         }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]