AspectSharp.Lang.Tests.Visitors.XmlTreeVisitorTestCase.GenerateAspectWithPointcuts C# (CSharp) Method

GenerateAspectWithPointcuts() private method

private GenerateAspectWithPointcuts ( ) : void
return void
		public void GenerateAspectWithPointcuts()
		{
			AspectParser parser = CreateParser(
				"import XPTO " + 
				"import XY in My.Assembly " + 
				" " + 
				" aspect McBrother for MyType in MyAssembly " + 
				" " + 
				"   pointcut method(*)" + 
				"     advice(MyType)" + 
				"   end" + 
				" " + 
				" end" + 
				" ");
			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\" />" +
				"<aspect name=\"McBrother\">" +
				"<for><singletype type=\"MyType\" refTypeEnum=\"Type\" assembly=\"MyAssembly\" />" +
				"</for>" +
				"<pointcut symbol=\"Method\"><signature>(*)</signature>" +
				"<interceptor type=\"MyType\" refTypeEnum=\"Type\" />" +
				"</pointcut></aspect></configuration>", content );
		}
	}