mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-22 10:31:58 +01:00
Add assert in debug tools
This commit is contained in:
1 parent
22e16ede00
commit
5d7186f5b1
1 file changed
+8
@@ -73,6 +73,14 @@ namespace FileConverter.Diagnostics
|
||||
diagnosticsData.Log(message, arguments);
|
||||
}
|
||||
|
||||
public static void Assert(bool condition, string message)
|
||||
{
|
||||
if (!condition)
|
||||
{
|
||||
LogError(message);
|
||||
}
|
||||
}
|
||||
|
||||
public static void LogError(string message, params object[] arguments)
|
||||
{
|
||||
string log = string.Format(message, arguments);
|
||||
|
||||
Reference in new issue
Block a user