Example #1
0
        public void ToStringMustNotInvokeToStringOnTarget()
        {
            Target target = new TargetWithBadToString();
            AbstractMethodInvocation join = CreateMethodInvocation(
                null, target, target.GetTargetMethodNoArgs(), null, null, target.GetType(), new ArrayList());

            // if it hits the target the test will fail with NotSupportedException...
            CheckToStringDoesntThrowAnException(join);
        }
		public void ToStringMustNotInvokeToStringOnTarget()
		{
			Target target = new TargetWithBadToString();
            AbstractMethodInvocation join = CreateMethodInvocation(
                null, target, target.GetTargetMethodNoArgs(), null, null, target.GetType(), new ArrayList());
			// if it hits the target the test will fail with NotSupportedException...
			CheckToStringDoesntThrowAnException(join);
		}