Test library for MTS Socket Modem Arduino Shield devices for Multi-Tech Systems

Dependents:   mtsas mtsas mtsas mtsas ... more

Revision:
1:42d2b6980cdd
Parent:
0:e002468be03b
--- a/Test.h	Mon May 19 14:13:02 2014 +0000
+++ b/Test.h	Mon May 19 11:02:48 2014 -0500
@@ -1,4 +1,38 @@
 #ifndef TEST_H
 #define TEST_H
 
-#endif
\ No newline at end of file
+#include <string>
+
+namespace mts
+{
+
+class Test
+{
+public:
+    static void start(std::string testName);
+    static void assertTrue(bool condition);
+    static void assertFalse(bool condition);
+    static void end();
+    
+    static void clearTotals();
+    static int getTotalTests();
+    static int getTotalFailed();
+    
+    static void printPassed(bool print);
+    static void printFailed(bool print);
+
+private:
+    static std::string testName;
+    static bool inProgress;
+    
+    static int totalTests;
+    static int totalFailed;
+    static int failed;
+    
+    static bool pPassed;
+    static bool pFailed;
+};
+
+}
+
+#endif