public void closeForm(Form form) { form.close(); form.sleep(500); Assert.That(form.Visible == false, "Form should not be visible by now"); }