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 { public class ACLTest {
[SetUp] [SetUp]
public void SetUp() { public void SetUp() {
Logger.LogDelegate += Utils.Print; LCLogger.LogDelegate += Utils.Print;
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
} }
[TearDown] [TearDown]
public void TearDown() { public void TearDown() {
Logger.LogDelegate -= Utils.Print; LCLogger.LogDelegate -= Utils.Print;
} }
[Test] [Test]

View File

@ -9,13 +9,13 @@ namespace LeanCloud.Test {
public class CloudTest { public class CloudTest {
[SetUp] [SetUp]
public void SetUp() { public void SetUp() {
Logger.LogDelegate += Utils.Print; LCLogger.LogDelegate += Utils.Print;
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
} }
[TearDown] [TearDown]
public void TearDown() { public void TearDown() {
Logger.LogDelegate -= Utils.Print; LCLogger.LogDelegate -= Utils.Print;
} }
[Test] [Test]

View File

@ -12,13 +12,13 @@ namespace LeanCloud.Test {
[SetUp] [SetUp]
public void SetUp() { public void SetUp() {
Logger.LogDelegate += Utils.Print; LCLogger.LogDelegate += Utils.Print;
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
} }
[TearDown] [TearDown]
public void TearDown() { public void TearDown() {
Logger.LogDelegate -= Utils.Print; LCLogger.LogDelegate -= Utils.Print;
} }
[Test] [Test]

View File

@ -9,13 +9,13 @@ namespace LeanCloud.Test {
public class ObjectTest { public class ObjectTest {
[SetUp] [SetUp]
public void SetUp() { public void SetUp() {
Logger.LogDelegate += Utils.Print; LCLogger.LogDelegate += Utils.Print;
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
} }
[TearDown] [TearDown]
public void TearDown() { public void TearDown() {
Logger.LogDelegate -= Utils.Print; LCLogger.LogDelegate -= Utils.Print;
} }
[Test] [Test]

View File

@ -8,13 +8,13 @@ namespace LeanCloud.Test {
public class OperationTest { public class OperationTest {
[SetUp] [SetUp]
public void SetUp() { public void SetUp() {
Logger.LogDelegate += Utils.Print; LCLogger.LogDelegate += Utils.Print;
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
} }
[TearDown] [TearDown]
public void TearDown() { public void TearDown() {
Logger.LogDelegate -= Utils.Print; LCLogger.LogDelegate -= Utils.Print;
} }
[Test] [Test]

View File

@ -8,13 +8,13 @@ namespace LeanCloud.Test {
public class QueryTest { public class QueryTest {
[SetUp] [SetUp]
public void SetUp() { public void SetUp() {
Logger.LogDelegate += Utils.Print; LCLogger.LogDelegate += Utils.Print;
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
} }
[TearDown] [TearDown]
public void TearDown() { public void TearDown() {
Logger.LogDelegate -= Utils.Print; LCLogger.LogDelegate -= Utils.Print;
} }
[Test] [Test]

View File

@ -9,13 +9,13 @@ namespace LeanCloud.Test {
public class RelationTest { public class RelationTest {
[SetUp] [SetUp]
public void SetUp() { public void SetUp() {
Logger.LogDelegate += Utils.Print; LCLogger.LogDelegate += Utils.Print;
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
} }
[TearDown] [TearDown]
public void TearDown() { public void TearDown() {
Logger.LogDelegate -= Utils.Print; LCLogger.LogDelegate -= Utils.Print;
} }
[Test] [Test]

View File

@ -11,13 +11,13 @@ namespace LeanCloud.Test {
public class RoleTest { public class RoleTest {
[SetUp] [SetUp]
public void SetUp() { public void SetUp() {
Logger.LogDelegate += Utils.Print; LCLogger.LogDelegate += Utils.Print;
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
} }
[TearDown] [TearDown]
public void TearDown() { public void TearDown() {
Logger.LogDelegate -= Utils.Print; LCLogger.LogDelegate -= Utils.Print;
} }
[Test] [Test]

View File

@ -39,13 +39,13 @@ namespace LeanCloud.Test {
public class SubClassTest { public class SubClassTest {
[SetUp] [SetUp]
public void SetUp() { public void SetUp() {
Logger.LogDelegate += Utils.Print; LCLogger.LogDelegate += Utils.Print;
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
} }
[TearDown] [TearDown]
public void TearDown() { public void TearDown() {
Logger.LogDelegate -= Utils.Print; LCLogger.LogDelegate -= Utils.Print;
} }
[Test] [Test]

View File

@ -9,13 +9,13 @@ namespace LeanCloud.Test {
public class UserTest { public class UserTest {
[SetUp] [SetUp]
public void SetUp() { public void SetUp() {
Logger.LogDelegate += Utils.Print; LCLogger.LogDelegate += Utils.Print;
LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com"); LCApplication.Initialize("ikGGdRE2YcVOemAaRbgp1xGJ-gzGzoHsz", "NUKmuRbdAhg1vrb2wexYo1jo", "https://ikggdre2.lc-cn-n1-shared.com");
} }
[TearDown] [TearDown]
public void TearDown() { public void TearDown() {
Logger.LogDelegate -= Utils.Print; LCLogger.LogDelegate -= Utils.Print;
} }
[Test] [Test]

View File

@ -5,15 +5,15 @@ using NUnit.Framework;
namespace LeanCloud.Test { namespace LeanCloud.Test {
public static class Utils { public static class Utils {
internal static void Print(LogLevel level, string info) { internal static void Print(LCLogLevel level, string info) {
switch (level) { switch (level) {
case LogLevel.Debug: case LCLogLevel.Debug:
TestContext.Out.WriteLine($"[DEBUG] {info}"); TestContext.Out.WriteLine($"[DEBUG] {info}");
break; break;
case LogLevel.Warn: case LCLogLevel.Warn:
TestContext.Out.WriteLine($"[WARNING] {info}"); TestContext.Out.WriteLine($"[WARNING] {info}");
break; break;
case LogLevel.Error: case LCLogLevel.Error:
TestContext.Out.WriteLine($"[ERROR] {info}"); TestContext.Out.WriteLine($"[ERROR] {info}");
break; break;
default: default: