AspectSharp.Tests.InterceptorTests.InterceptorTestCase.WrapAndInvokeEverything C# (CSharp) Method

WrapAndInvokeEverything() private static method

private static WrapAndInvokeEverything ( AspectEngine engine ) : void
engine AspectEngine
return void
		private static void WrapAndInvokeEverything(AspectEngine engine)
		{
			ComplexClass instance = engine.WrapClass(typeof(ComplexClass)) as ComplexClass;
			instance.DoNothing();
			instance.DoSomething();
			int arg = 1;

			instance.DoSomething(arg);
			instance.DoSomething(arg, "hiya");

			//TODO: Intercept by ref calls.
			//Assert.AreEqual(arg, instance.Pong(ref arg));
			
			instance.Name = "John Johnson";
			Assert.AreEqual( "John Johnson", instance.Name );
			instance.Started = true;
			Assert.IsTrue( instance.Started );
		}
	}