public void OptionDelegates_Succeed() { var uut = new OptionDelegate(new List <string> { "happy" }, DoNothing); Assert.IsNotNull(uut); uut.Invoke(); Assert.IsTrue(didNothing); }
/// <summary> /// Constructor /// </summary> /// <param name="option">Option</param> /// <param name="handler">Delegate to call for the option</param> public MessageBoxOption(FastString option, OptionDelegate handler) { this.option.Set(option); this.handler = handler; }