AspectSharp.Lang.Tests.ParserAspectTestCase.ParsingAspectForNamespaceWithExcludes C# (CSharp) Метод

ParsingAspectForNamespaceWithExcludes() приватный Метод

private ParsingAspectForNamespaceWithExcludes ( ) : void
Результат void
		public void ParsingAspectForNamespaceWithExcludes()
		{
			AspectParser parser = CreateParser(
				"aspect XPTO for [ my.namespace.types excludes(Customer;Author) ] \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(TargetStrategyEnum.Namespace, def.TargetType.TargetStrategy);
			Assert.AreEqual("my.namespace.types", def.TargetType.NamespaceRoot);
			Assert.IsFalse(def.TargetType.IncludeSubNamespace);
			Assert.AreEqual(2, def.TargetType.Excludes.Count);
		}