/[ThermoControl]/trunk/libThermoControl/UnitTester.cs
ViewVC logotype

Diff of /trunk/libThermoControl/UnitTester.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libThermoControl/UnitTester.cs	2013/11/13 00:42:58	14
+++ trunk/libThermoControl/UnitTester.cs	2013/11/13 01:18:51	15
@@ -1,5 +1,8 @@
-//#define ENABLE_EXTENDED_ERROR_MESSAGES
+#define ENABLE_EXTENDED_ERROR_MESSAGES
 #define ENABLE_SHORT_ERROR_MESSAGES
+
+#define CONFIG_UNITTEST
+
 using System;
 using System.Collections.Generic;
 using System.Diagnostics;
@@ -31,6 +34,7 @@
         {
             tests = new Stack<UnitTest>();
             tests.Push(new ThermistatControlsUnitTest());
+            tests.Push(new ConfigurationUnitTest());
         }
 
         #region sub-classes
@@ -70,6 +74,25 @@
         #endregion
 
         #region unit test class implementations
+        private class ConfigurationUnitTest : UnitTest
+        {
+            protected override void __RunTest()
+            {
+                Configuration.UnitTest();
+                // Verify
+                Console.WriteLine("Configuration.MIN_TEMP: '{0}'", Configuration.MIN_TEMP);
+                Console.WriteLine("Configuration.MAX_TEMP: '{0}'", Configuration.MAX_TEMP);
+                Console.WriteLine("Configuration.DEFAULT_TEMP: '{0}'", Configuration.DEFAULT_TEMP);
+                Console.WriteLine("Configuration.DEFAULT_MODE: '{0}'", Configuration.DEFAULT_MODE);
+            }
+            public override string Name
+            {
+                get
+                {
+                    return "Configuration Test";
+                }
+            }
+        }
         private class ThermistatControlsUnitTest : UnitTest
         {
             protected override void __RunTest()

 

  ViewVC Help
Powered by ViewVC 1.1.22