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

GenerateAspectWithIncludes() private method

private GenerateAspectWithIncludes ( ) : void
return void
		public void GenerateAspectWithIncludes()
		{
			AspectParser parser = CreateParser(
				"import XPTO " + 
				"import XY in My.Assembly " + 
				" " + 
				" aspect McBrother for MyType in MyAssembly " + 
				"   include \"key\"" + 
				"   include MyType in MyAssembly" + 
				" 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>" +
				"<mixin type=\"key\" refTypeEnum=\"Link\" />" +
				"<mixin type=\"MyType\" refTypeEnum=\"Type\" assembly=\"MyAssembly\" />" +
				"</aspect></configuration>", content );
		}