Ejemplo n.º 1
0
 public void TestSummeLoc()
 {
     var quellcode = new Quellcode();
     string[] lines = { "Eins", "// Zwei", "Drei", "/* Vier", "Fünf", "Sechs */", "Sieben", "" };
     quellcode.Codezeilen = lines;
     var testclass = new Statistik();
     testclass.LOC_summieren(quellcode);
     Assert.AreEqual(8, testclass.SummeLOC);
 }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     // build
     var portal = new Portal();
     var folderProvider = new FolderProvider();
     var csProvider = new CsProvider();
     var kommentarSchlucker = new KommentarSchlucker();
     var stats = new Statistik();
     // build + bind
     var interactors = new Interactors(folderProvider, csProvider, kommentarSchlucker, stats);
     var app = new Application(portal, interactors);
     // run
     app.Run();
 }