chore: 异常测试
parent
f8798b67e8
commit
2e026c2b76
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue