26 lines
772 B
C#
26 lines
772 B
C#
using System;
|
|
using LeanCloud;
|
|
using LeanCloud.Common;
|
|
using NUnit.Framework;
|
|
|
|
namespace LeanCloud.Test {
|
|
public static class Utils {
|
|
internal static void Print(LCLogLevel level, string info) {
|
|
switch (level) {
|
|
case LCLogLevel.Debug:
|
|
TestContext.Out.WriteLine($"[DEBUG] {info}");
|
|
break;
|
|
case LCLogLevel.Warn:
|
|
TestContext.Out.WriteLine($"[WARNING] {info}");
|
|
break;
|
|
case LCLogLevel.Error:
|
|
TestContext.Out.WriteLine($"[ERROR] {info}");
|
|
break;
|
|
default:
|
|
TestContext.Out.WriteLine(info);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|