public void ConstructorTest() { Control ctrl = new Control(); string ctrlString = "ctrl"; NuGenTargetEventArgsT<Control, string> eventArgs = new NuGenTargetEventArgsT<Control, string>(ctrl, ctrlString); Assert.AreEqual(ctrl, eventArgs.Target); Assert.AreEqual(ctrlString, eventArgs.TargetData); }
public void ConstructorTest() { Control ctrl = new Control(); string ctrlString = "ctrl"; NuGenTargetEventArgsT <Control, string> eventArgs = new NuGenTargetEventArgsT <Control, string>(ctrl, ctrlString); Assert.AreEqual(ctrl, eventArgs.Target); Assert.AreEqual(ctrlString, eventArgs.TargetData); }