AspectSharp.Lang.Tests.ParserPointcutTestCase.ParsingSimplePointcutDeclaration C# (CSharp) Метод

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

private ParsingSimplePointcutDeclaration ( ) : void
Результат void
		public void ParsingSimplePointcutDeclaration()
		{
			AspectParser parser = CreateParser(
				"aspect XPTO for MyNamespace.MyType \r\n" +
				" " + 
				" pointcut method(*)" + 
				" end" + 
				" " + 
				"end");
			EngineConfiguration conf = parser.Parse();
			AspectDefinition def = conf.Aspects[0];
			Assert.AreEqual(1, def.PointCuts.Count);
			PointCutDefinition pointcut = def.PointCuts[0];
			Assert.IsNotNull( pointcut );
			Assert.AreEqual( PointCutFlags.Method, pointcut.Flags );
			Assert.AreEqual( AllMethodSignature.Instance, pointcut.Method );
		}