public void TestDetectcontenuX100Y0() { GenerateurWidget generateurw = new GenerateurWidget(new Generateur()); bool detect = generateurw.Detectcontenu(new Point(100, 0)); Assert.AreEqual(detect, true); }
private void RouteBouton_MouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { if (GenerateurWidget.Detectcontenu(e.Location)) { GenerateurWidget.Generateur.EditionRoute(GenerateurWidget.DetectionOrientation(e.Location)); } Invalidate(); } }