From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- Bachelor/Softwaretechnik2/code/main.cpp | 52 +++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Bachelor/Softwaretechnik2/code/main.cpp (limited to 'Bachelor/Softwaretechnik2/code/main.cpp') diff --git a/Bachelor/Softwaretechnik2/code/main.cpp b/Bachelor/Softwaretechnik2/code/main.cpp new file mode 100644 index 0000000..41e664a --- /dev/null +++ b/Bachelor/Softwaretechnik2/code/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 +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; +} + -- cgit v1.2.3