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

InterceptAllDoSomethingMethodReturningInt() private method

private InterceptAllDoSomethingMethodReturningInt ( ) : void
return void
		public void InterceptAllDoSomethingMethodReturningInt()
		{
			String contents = "import AspectSharp.Tests.Classes in AspectSharp.Tests " + 
				" " + 
				" aspect MyAspect for ComplexClass " + 
				"   " + 
				"   pointcut method(int DoSomething(*))" + 
				"     advice(AspectSharp.Tests.Classes.LogInvocationInterceptor)" + 
				"   end" + 
				"   " + 
				" end ";

			AspectEngineBuilder builder = new AspectLanguageEngineBuilder(contents);
			AspectEngine engine = builder.Build();
			
			WrapAndInvokeEverything(engine);

			String[] messages = LogInvocationInterceptor.Messages;
			Assert.AreEqual( 3, messages.Length );
		}