Esempio n. 1
0
 private void btnPiramide_Click(object sender, EventArgs e)
 {
     string filename = "HelloWorld.Pdf";
     RekenPyramide rp = new RekenPyramide();
     PdfDocument doc = rp.CreateRekenPyramide(filename);
     PDFDocumentViewer(filename);
 }
Esempio n. 2
0
 public void GeneratePyramid_HasAllCellsFilled()
 {
     RekenPyramide rp = new RekenPyramide();
     Random rnd = new Random(3);
     int [,] pyramide = rp.GeneratePyramid(3,rnd,2);
     Assert.AreEqual(true,pyramide.IsFixedSize);
     //Assert.AreEqual(6,pyramide.Length);
 }