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

ParsingAspectEmptyDeclarationWithFullType() private method

private ParsingAspectEmptyDeclarationWithFullType ( ) : void
return void
		public void ParsingAspectEmptyDeclarationWithFullType()
		{
			AspectParser parser = CreateParser(
				"aspect XPTO for MyNamespace.MyType in My.New.Assembly \r\n" +
					"end");
			EngineConfiguration conf = parser.Parse();
			Assert.IsNotNull(conf);
			Assert.IsNotNull(conf.Aspects);
			Assert.AreEqual(1, conf.Aspects.Count);
			AspectDefinition def = conf.Aspects[0];
			Assert.IsNotNull(def);
			Assert.AreEqual("XPTO", def.Name);
			Assert.AreEqual("MyNamespace.MyType", def.TargetType.SingleType.TypeName);
			Assert.AreEqual("My.New.Assembly", def.TargetType.SingleType.AssemblyReference.AssemblyName);
		}