public void ParsingInterceptorTypeForProperty()
{
AspectParser parser = CreateParser(
"aspect XPTO for MyNamespace.MyType \r\n" +
" " +
" pointcut property(* Name)" +
" advice( My.NS.Interceptor in My.Assembly )" +
" end" +
" " +
"end");
EngineConfiguration conf = parser.Parse();
AspectDefinition def = conf.Aspects[0];
PointCutDefinition pointcut = def.PointCuts[0];
Assert.AreEqual(1, pointcut.Advices.Count);
InterceptorDefinition adv = pointcut.Advices[0];
Assert.IsNotNull( adv );
Assert.AreEqual( TargetTypeEnum.Type, adv.TypeReference.TargetType );
Assert.AreEqual( "My.NS.Interceptor", adv.TypeReference.TypeName );
Assert.AreEqual( "My.Assembly", adv.TypeReference.AssemblyReference.AssemblyName );
}