private bool ProcessEx(Assembly assembly, XmlFormatter xmlFormatter) { if (Action == Action.Check) { Type[] types = DbAttributesManager.LoadDbRecordTypes(assembly); int errorNumber = 1; for (int i = 0; i < types.Length; i++) { Type type = types[i]; bool isValid = StructureGateway.IsValid(type); if (isValid) { xmlFormatter.AppendUnitTestResult("Mapping Test - " + type.FullName, Outcome.Passed, ""); string message = string.Format( "{0} ({1}) - Ok" , type, assembly.ManifestModule.Name); Console.WriteLine(message); } else { string message = string.Format( "\r\n{3}. {0} ({1}) \r\n{4}\r\n{2}\r\n{4}" , type, assembly.ManifestModule.Name, StructureGateway.LastError, errorNumber++, "----------------------------------------------------------------------------" ); Console.WriteLine(message); ExitCode = ExitCode.Failure; xmlFormatter.AppendUnitTestResult("Mapping Test - " + type.FullName, Outcome.Failed, StructureGateway.LastError); } } return(true); } return(false); }