AspectSharp.Lang.Tests.ParserGlobalsTestCase.ParsingMixinDeclarationWithAssembly C# (CSharp) Method

ParsingMixinDeclarationWithAssembly() private method

private ParsingMixinDeclarationWithAssembly ( ) : void
return void
		public void ParsingMixinDeclarationWithAssembly()
		{
			AspectParser parser = CreateParser(
				"mixins \r\n" +
				"[" + 
				"\"customer\" : Namespace.CustomerMixin in MyAssembly" +
				"]");
			EngineConfiguration conf = parser.Parse();
			Assert.IsNotNull(conf);
			Assert.IsNotNull(conf.Mixins);
			Assert.AreEqual(1, conf.Mixins.Count);
			MixinEntryDefinition def = conf.Mixins[0];
			Assert.IsNotNull(def);
			Assert.AreEqual("customer", def.Key);
			Assert.AreEqual(TargetTypeEnum.Type, def.TypeReference.TargetType);
			Assert.AreEqual("Namespace.CustomerMixin", def.TypeReference.TypeName);
			Assert.AreEqual("MyAssembly", def.TypeReference.AssemblyReference.AssemblyName);

		}