rename
parent
13d1a194bf
commit
57b1a59cd0
|
@ -7,13 +7,13 @@ namespace LeanCloud.Test {
|
|||
public class ACLTest {
|
||||
[SetUp]
|
||||
public void SetUp() {
|
||||
Logger.LogDelegate += Utils.Print;
|
||||
LCLogger.LogDelegate += Utils.Print;
|
||||
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown() {
|
||||
Logger.LogDelegate -= Utils.Print;
|
||||
LCLogger.LogDelegate -= Utils.Print;
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -9,13 +9,13 @@ namespace LeanCloud.Test {
|
|||
public class CloudTest {
|
||||
[SetUp]
|
||||
public void SetUp() {
|
||||
Logger.LogDelegate += Utils.Print;
|
||||
LCLogger.LogDelegate += Utils.Print;
|
||||
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown() {
|
||||
Logger.LogDelegate -= Utils.Print;
|
||||
LCLogger.LogDelegate -= Utils.Print;
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -12,13 +12,13 @@ namespace LeanCloud.Test {
|
|||
|
||||
[SetUp]
|
||||
public void SetUp() {
|
||||
Logger.LogDelegate += Utils.Print;
|
||||
LCLogger.LogDelegate += Utils.Print;
|
||||
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown() {
|
||||
Logger.LogDelegate -= Utils.Print;
|
||||
LCLogger.LogDelegate -= Utils.Print;
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -9,13 +9,13 @@ namespace LeanCloud.Test {
|
|||
public class ObjectTest {
|
||||
[SetUp]
|
||||
public void SetUp() {
|
||||
Logger.LogDelegate += Utils.Print;
|
||||
LCLogger.LogDelegate += Utils.Print;
|
||||
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown() {
|
||||
Logger.LogDelegate -= Utils.Print;
|
||||
LCLogger.LogDelegate -= Utils.Print;
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -8,13 +8,13 @@ namespace LeanCloud.Test {
|
|||
public class OperationTest {
|
||||
[SetUp]
|
||||
public void SetUp() {
|
||||
Logger.LogDelegate += Utils.Print;
|
||||
LCLogger.LogDelegate += Utils.Print;
|
||||
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown() {
|
||||
Logger.LogDelegate -= Utils.Print;
|
||||
LCLogger.LogDelegate -= Utils.Print;
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -8,13 +8,13 @@ namespace LeanCloud.Test {
|
|||
public class QueryTest {
|
||||
[SetUp]
|
||||
public void SetUp() {
|
||||
Logger.LogDelegate += Utils.Print;
|
||||
LCLogger.LogDelegate += Utils.Print;
|
||||
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown() {
|
||||
Logger.LogDelegate -= Utils.Print;
|
||||
LCLogger.LogDelegate -= Utils.Print;
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -9,13 +9,13 @@ namespace LeanCloud.Test {
|
|||
public class RelationTest {
|
||||
[SetUp]
|
||||
public void SetUp() {
|
||||
Logger.LogDelegate += Utils.Print;
|
||||
LCLogger.LogDelegate += Utils.Print;
|
||||
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown() {
|
||||
Logger.LogDelegate -= Utils.Print;
|
||||
LCLogger.LogDelegate -= Utils.Print;
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -11,13 +11,13 @@ namespace LeanCloud.Test {
|
|||
public class RoleTest {
|
||||
[SetUp]
|
||||
public void SetUp() {
|
||||
Logger.LogDelegate += Utils.Print;
|
||||
LCLogger.LogDelegate += Utils.Print;
|
||||
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown() {
|
||||
Logger.LogDelegate -= Utils.Print;
|
||||
LCLogger.LogDelegate -= Utils.Print;
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -39,13 +39,13 @@ namespace LeanCloud.Test {
|
|||
public class SubClassTest {
|
||||
[SetUp]
|
||||
public void SetUp() {
|
||||
Logger.LogDelegate += Utils.Print;
|
||||
LCLogger.LogDelegate += Utils.Print;
|
||||
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown() {
|
||||
Logger.LogDelegate -= Utils.Print;
|
||||
LCLogger.LogDelegate -= Utils.Print;
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -9,13 +9,13 @@ namespace LeanCloud.Test {
|
|||
public class UserTest {
|
||||
[SetUp]
|
||||
public void SetUp() {
|
||||
Logger.LogDelegate += Utils.Print;
|
||||
LCLogger.LogDelegate += Utils.Print;
|
||||
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown() {
|
||||
Logger.LogDelegate -= Utils.Print;
|
||||
LCLogger.LogDelegate -= Utils.Print;
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -5,15 +5,15 @@ using NUnit.Framework;
|
|||
|
||||
namespace LeanCloud.Test {
|
||||
public static class Utils {
|
||||
internal static void Print(LogLevel level, string info) {
|
||||
internal static void Print(LCLogLevel level, string info) {
|
||||
switch (level) {
|
||||
case LogLevel.Debug:
|
||||
case LCLogLevel.Debug:
|
||||
TestContext.Out.WriteLine($"[DEBUG] {info}");
|
||||
break;
|
||||
case LogLevel.Warn:
|
||||
case LCLogLevel.Warn:
|
||||
TestContext.Out.WriteLine($"[WARNING] {info}");
|
||||
break;
|
||||
case LogLevel.Error:
|
||||
case LCLogLevel.Error:
|
||||
TestContext.Out.WriteLine($"[ERROR] {info}");
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue