Commit e5f501f

mo <email@solidware.ca>
2011-04-03 02:13:39
fix build script to use old mspec dir, and fix compiler warnings.
1 parent f3e8e75
Changed files (3)
product
desktop.ui
support
product/desktop.ui/views/controls/ObjectExtensions.cs
@@ -18,15 +18,14 @@ namespace solidware.financials.windows.ui.views.controls
         {
             return value is T;
         }
-        public static T As<T>(this object value)
+
+        static public T As<T>(this object value)
         {
             if (value is T)
-                return (T)value;
-            if(value is Observable)
-            {
-                return (T)((Observable)value).Value;
-            }
-            return (T)Convert.ChangeType(value, typeof (T));
+                return (T) value;
+            if (value is Observable)
+                return (T) ((Observable) value).Value;
+            return (T) Convert.ChangeType(value, typeof (T));
         }
     }
 }
\ No newline at end of file
product/desktop.ui/views/controls/Observable.cs
@@ -5,7 +5,7 @@ namespace solidware.financials.windows.ui.views.controls
 {
     public interface Observable<T> : Observable
     {
-        T Value { get; set; }
+        new T Value { get; set; }
         void WhenChanged(Action observer);
     }
 
support/default.build
@@ -66,7 +66,7 @@
   </target>
 
   <target name="run.test" depends="compile">
-    <property name="xunit.cons.exe" value="${base.dir}/packages/Machine.Specifications.0.4.9.0/tools/mspec-clr4.exe" />
+    <property name="xunit.cons.exe" value="${tools.dir}/mspec/mspec.exe" />
     <exec program="${xunit.cons.exe}" workingdir="${tmp.dir}" commandline="${xunit.arguments}" />
   </target>