static void Prepare() { StringHasher.Initialize(m_directory); FileLogger.Initialize(m_directory); Utility.TestUtility(); }
static void Bastard_Prepare() { // TODO TODO TODO if (Config.DumpInfo) { Utils.Bastard.Fail("**** Not implemented yet! ****"); } if (Config.DebugLog) { var debugLog = Path.Combine(MyDirectory, "debug.log"); if (File.Exists(debugLog)) { File.Delete(debugLog); } Snoopy = new TextWriterTraceListener(debugLog, "DEBUG_LOG"); Debug.AutoFlush = true; Debug.Listeners.Clear(); Debug.Listeners.Add(Snoopy); } if (Config.Silent) { Console.SetOut(TextWriter.Null); Console.SetError(TextWriter.Null); } StringHasher.Initialize(MyDirectory); AttributeTypes.Initialize(MyDirectory); ResourceFactory.Initialize(MyDirectory); }