public void OnChange() { //Arrange Corner corner = new Corner(0, 0); corner.Changed += delegate(object sender, System.EventArgs e) { Assert.AreEqual(new PointF(10, 10), ((Corner)sender).GetPoint()); }; //Act corner.SetPoint(new PointF(10, 10)); //Assert }