public void ControlWithLocalAndBaseKeys() { var checkBox = new CheckBox(); checkBox.CheckedChanged += TestingListener.AnotherStandardCallback; checkBox.Click += TestingListener.AnotherStandardCallback; checkBox.Click += TestingListener.StandardCallback; Approvals.VerifyAll(checkBox.GetEventHandlerListEvents(), string.Empty); }
public void ControlWithEmptyHandlers() { var checkBox = new CheckBox(); Assert.AreEqual(0, checkBox.GetEventHandlerListEvents().Count()); }