public void AspectDNG_CheckIfHooksDllContainsAndAspectDngAspect()
        {
            String sHooksDll = DngConfig.copyCurrentDllToTempFolder();

            Assert.IsTrue(File.Exists(sHooksDll), "AspectDng.exe doesn't exist: {0}", sHooksDll);

            bool bContainsAspect =
                CecilCodeSearch.findInAssembly_CustomAttribute(sHooksDll, "AroundBody") ||
                CecilCodeSearch.findInAssembly_CustomAttribute(sHooksDll, "AroundCall");

            Assert.IsTrue(bContainsAspect, "Hook Dll did not contain an AspectDng aspect");
        }
        public static List <String> getAssembliesWithUnitTest(IEnumerable <string> filesToSearch)
        {
            var assembliesWithUnitTest       = new List <String>();
            var unitTestAttribute            = "TestAttribute";
            var assembliesThatReferenceNUnit = getAssembliesThatReferenceNUnit(filesToSearch);

            foreach (var file in assembliesThatReferenceNUnit)
            {
                if (CecilCodeSearch.findInAssembly_CustomAttribute(file, unitTestAttribute))
                {
                    assembliesWithUnitTest.Add(file);
                }
            }
            return(assembliesWithUnitTest);
        }