diff options
Diffstat (limited to 'Bachelor/Softwaretechnik2/mixer/main.cpp')
| -rw-r--r-- | Bachelor/Softwaretechnik2/mixer/main.cpp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Bachelor/Softwaretechnik2/mixer/main.cpp b/Bachelor/Softwaretechnik2/mixer/main.cpp new file mode 100644 index 0000000..41e664a --- /dev/null +++ b/Bachelor/Softwaretechnik2/mixer/main.cpp @@ -0,0 +1,52 @@ +//#include "CRezept.hpp"
+//#include "CDisplay.hpp"
+#include "CGeraet.hpp"
+#include "CObserver.hpp"
+#include "CRezeptProcessor.hpp"
+#include "CRezeptSchritt.hpp"
+#include "CRezept.hpp"
+#include "CSubjekt.hpp"
+#include "CWaage.hpp"
+#include "TestSuite.h"
+#include "TestCWaage.h"
+#include "TestCDosierer.h"
+//#include "CDosierer.hpp"
+
+#include <iostream>
+using std::cout;
+using std::cin;
+using std::endl;
+
+// hier ist der Schalter für Testen !
+const bool TEST = true;
+
+int main(){
+
+ cout << "\"Entwicklung Cocktailmischer\" version "
+ << __DATE__ << " " << __TIME__
+ << endl << endl;
+
+ if (TEST) // Test ausführen
+ {
+ // Test Suite erzeugen
+ TestSuite testSammlung("Alle_Tests");
+
+ // Neuen Test erzeugen und hinzufügen
+ testSammlung.addTest( new TestCDosierer );
+ testSammlung.addTest( new TestCWaage);
+
+
+ // Alle(!) Tests starten
+ testSammlung.run();
+
+ return 0; // Programm beenden
+
+ } // Ende aller Tests
+ else
+
+ CRezeptProzessor *crp = new CRezeptProzessor;
+
+
+return 0;
+}
+
|
