public void OnMismatch(MismatchEventArgs<string> args) { bool raised = false; EventHandler<MismatchEventArgs<string>> handler = (sender, e) => raised = e == args; var sut = new ExperimentSteps<string, string>(); sut.OnMismatchEvent += handler; sut.OnMismatch(args); //Verify Assert.True(raised); }
public void OnMismatch(MismatchEventArgs <string> args) { bool raised = false; EventHandler <MismatchEventArgs <string> > handler = (sender, e) => raised = e == args; var sut = new ExperimentSteps <string, string>(); sut.OnMismatchEvent += handler; sut.OnMismatch(args); //Verify Assert.True(raised); }