public void ControlWithEverything() { var testingControl = new TestingControl(); testingControl.Click += TestingListener.StandardCallback; testingControl.Click += TestingListener.AnotherStandardCallback; testingControl.MyEvent += TestingListener.StandardCallback; testingControl.MyEvent += TestingListener.AnotherStandardCallback; testingControl.KeyEvent += TestingListener.StandardCallback; testingControl.KeyEvent += TestingListener.AnotherStandardCallback; EventApprovals.VerifyEvents(testingControl); }
public void ControlWithEverything() { using (ApprovalTests.Namers.ApprovalResults.UniqueForOs()) { var testingControl = new TestingControl(); testingControl.Click += TestingListener.StandardCallback; testingControl.Click += TestingListener.AnotherStandardCallback; testingControl.MyEvent += TestingListener.StandardCallback; testingControl.MyEvent += TestingListener.AnotherStandardCallback; testingControl.KeyEvent += TestingListener.StandardCallback; testingControl.KeyEvent += TestingListener.AnotherStandardCallback; EventApprovals.VerifyEvents(testingControl); } }
public void ControlWithEverything() { using(ApprovalTests.Namers.ApprovalResults.UniqueForOs()) { var testingControl = new TestingControl(); testingControl.Click += TestingListener.StandardCallback; testingControl.Click += TestingListener.AnotherStandardCallback; testingControl.MyEvent += TestingListener.StandardCallback; testingControl.MyEvent += TestingListener.AnotherStandardCallback; testingControl.KeyEvent += TestingListener.StandardCallback; testingControl.KeyEvent += TestingListener.AnotherStandardCallback; EventApprovals.VerifyEvents(testingControl); } }