예제 #1
0
        public void advisedAction_ctor()
        {
            GenericParameterHelper target = new GenericParameterHelper();

            AdvisedAction actual = new AdvisedAction(target, ProposedActions.Delete);

            actual.Action.Should().Be.EqualTo(ProposedActions.Delete);
            actual.Target.Should().Be.EqualTo(target);
        }
예제 #2
0
 public void advisedAction_ctor_invalid_proposed_action()
 {
     AdvisedAction actual = new AdvisedAction(new Object(), (ProposedActions)1000);
 }
예제 #3
0
 public void advisedAction_ctor_not_supported_proposed_action()
 {
     AdvisedAction actual = new AdvisedAction(new Object(), ProposedActions.None);
 }
예제 #4
0
 public void advisedAction_ctor_null_reference_target()
 {
     AdvisedAction actual = new AdvisedAction(null, ProposedActions.Delete);
 }