diff --git a/Storage/Storage.Test/ExceptionTest.cs b/Storage/Storage.Test/ExceptionTest.cs new file mode 100644 index 0000000..4097e6f --- /dev/null +++ b/Storage/Storage.Test/ExceptionTest.cs @@ -0,0 +1,16 @@ +using NUnit.Framework; +using LeanCloud.Storage; + +namespace LeanCloud.Test { + public class ExceptionTest { + [Test] + public void LeanCloudException() { + try { + throw new LCException(123, "hello, world"); + } catch (LCException e) { + TestContext.WriteLine($"{e.Code} : {e.Message}"); + Assert.AreEqual(e.Code, 123); + } + } + } +}