コード例 #1
0
 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);
 }
コード例 #2
0
 public void ControlWithEmptyHandlers()
 {
     var checkBox = new CheckBox();
     Assert.AreEqual(0, checkBox.GetEventHandlerListEvents().Count());
 }