public void GenerateGlobalMixinsAndInterceptors()
{
AspectParser parser = CreateParser(
"import XPTO " +
"import XY in My.Assembly " +
" " +
" interceptors [ \"key\" : MyType in MyAssembly; \"key2\" : MyTypeThatMustBeResolved ] " +
" mixins [ \"key\" : MyType in MyAssembly; \"key2\" : MyTypeThatMustBeResolved ] " +
" " +
" " +
" ");
EngineConfiguration conf = parser.Parse();
XmlTreeVisitor visitor = new XmlTreeVisitor();
visitor.Visit( conf );
String content = visitor.Document.InnerXml;
Assert.AreEqual( "<configuration>" +
"<import namespace=\"XPTO\" />" +
"<import namespace=\"XY\" assembly=\"My.Assembly\" />" +
"<mixins><mixin key=\"key\" type=\"MyType\" refTypeEnum=\"Type\" assembly=\"MyAssembly\" />" +
"<mixin key=\"key2\" type=\"MyTypeThatMustBeResolved\" refTypeEnum=\"Type\" />" +
"</mixins><interceptors>" +
"<interceptor key=\"key\" type=\"MyType\" refTypeEnum=\"Type\" assembly=\"MyAssembly\" />" +
"<interceptor key=\"key2\" type=\"MyTypeThatMustBeResolved\" refTypeEnum=\"Type\" />" +
"</interceptors></configuration>", content );
}