//public static void AssertAndLog(bool condition) //{ // AssertAndLog(condition, "no message"); //} public static void Log(ErrorType errorType, string logMessage, TextWriter w) { object errorVal = Convert.ChangeType(errorType, errorType.GetTypeCode()); w.Write($"\r\n{FileName};{errorVal};{logMessage}"); }