public void ParsingPointcutDeclarationForMethodDoSomethingAlsoWithNoArgument()
{
AspectParser parser = CreateParser(
"aspect XPTO for MyNamespace.MyType \r\n" +
" " +
" pointcut method(* DoSomething())" +
" end" +
" " +
"end");
EngineConfiguration conf = parser.Parse();
AspectDefinition def = conf.Aspects[0];
PointCutDefinition pointcut = def.PointCuts[0];
Assert.AreEqual( PointCutFlags.Method, pointcut.Flags );
Assert.AreEqual( "DoSomething", pointcut.Method.MethodName );
Assert.AreEqual( 0, pointcut.Method.Arguments.Length );
Assert.IsTrue( pointcut.Method.AllRetTypes );
Assert.IsTrue( !pointcut.Method.AllArguments );
}