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

29 lines
1.0 KiB
C#
Raw Normal View History

2020-04-28 17:04:46 +08:00
using NUnit.Framework;
2020-03-04 14:31:48 +08:00
using LeanCloud;
2020-04-28 17:04:46 +08:00
namespace Storage.Test {
2020-03-04 14:31:48 +08:00
public static class Utils {
internal const string AppId = "ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz";
internal const string AppKey = "NUKmuRbdAhg1vrb2wexYo1jo";
2020-05-07 15:49:49 +08:00
internal const string MasterKey = "pyvbNSh5jXsuFQ3C8EgnIdhw";
internal const string AppServer = "https://ikggdre2.lc-cn-n1-shared.com";
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;
}
}
}
}