private void btnPiramide_Click(object sender, EventArgs e) { string filename = "HelloWorld.Pdf"; RekenPyramide rp = new RekenPyramide(); PdfDocument doc = rp.CreateRekenPyramide(filename); PDFDocumentViewer(filename); }
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); }