AspectSharp.Lang.Tests.ParserAspectTestCase.ParsingAspectWithMixinRefDeclaration C# (CSharp) Method

ParsingAspectWithMixinRefDeclaration() private method

private ParsingAspectWithMixinRefDeclaration ( ) : void
return void
		public void ParsingAspectWithMixinRefDeclaration()
		{
			AspectParser parser = CreateParser(
				"aspect XPTO for MyNamespace.MyType \r\n" +
					"" +
					"  include \"customer\"" +
					"" +
					"" +
					"end");
			EngineConfiguration conf = parser.Parse();
			AspectDefinition def = conf.Aspects[0];
			Assert.AreEqual(1, def.Mixins.Count);

			MixinDefinition typeName = def.Mixins[0];
			Assert.AreEqual(TargetTypeEnum.Link, typeName.TypeReference.TargetType);
			Assert.AreEqual("customer", typeName.TypeReference.LinkRef);
		}