csharp-sdk-upm/Test/Storage.Test/Utils.cs

26 lines
772 B
C#
Raw Normal View History

2020-03-04 14:31:48 +08:00
using System;
using LeanCloud;
using LeanCloud.Common;
using NUnit.Framework;
namespace LeanCloud.Test {
public static class Utils {
2020-03-10 16:55:17 +08:00
internal static void Print(LCLogLevel level, string info) {
2020-03-04 14:31:48 +08:00
switch (level) {
2020-03-10 16:55:17 +08:00
case LCLogLevel.Debug:
2020-03-04 14:31:48 +08:00
TestContext.Out.WriteLine($"[DEBUG] {info}");
break;
2020-03-10 16:55:17 +08:00
case LCLogLevel.Warn:
2020-03-04 14:31:48 +08:00
TestContext.Out.WriteLine($"[WARNING] {info}");
break;
2020-03-10 16:55:17 +08:00
case LCLogLevel.Error:
2020-03-04 14:31:48 +08:00
TestContext.Out.WriteLine($"[ERROR] {info}");
break;
default:
TestContext.Out.WriteLine(info);
break;
}
}
}
}