public void handler_is_called() { SupportView expected = new SupportView(); object actual = null; viewManager.AddContainer(container); viewManager.AddViewHandler(new CallbackViewHandler(delegate(object view, Type type) { actual = view; })); container.AddChild(expected); expected.Register(); Assert.That(actual, Is.EqualTo(expected)); }