public void AspectTargetingNamespaceWithExcludes()
{
String content = "import System.Collections " +
"aspect McBrother for [System.Collections excludes(Stack) ] " +
" " +
"end " +
" ";
EngineConfiguration conf = ProcessContent(content);
Assert.IsFalse(_context.HasErrors);
AspectDefinition aspect = conf.Aspects[0];
Assert.AreEqual( TargetStrategyEnum.Namespace, aspect.TargetType.TargetStrategy );
Assert.AreEqual( "System.Collections", aspect.TargetType.NamespaceRoot );
Assert.AreEqual( 1, aspect.TargetType.Excludes.Count );
TypeReference typeRef = aspect.TargetType.Excludes[0];
Assert.AreEqual( typeof(System.Collections.Stack), typeRef.ResolvedType );
}