oneRain 2020-03-10 16:55:17 +08:00
parent 13d1a194bf
commit 57b1a59cd0
11 changed files with 24 additions and 24 deletions

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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: