* hello.png: chore: 调整测试文件所在目录
* test.apk: * hello.png: * FileTest.cs: * test.apk:
parent
b511d832c7
commit
56bfee1732
|
@ -7,14 +7,14 @@ namespace LeanCloudTests {
|
|||
public class FileTest {
|
||||
[SetUp]
|
||||
public void SetUp() {
|
||||
//Utils.InitNorthChina();
|
||||
Utils.InitEastChina();
|
||||
Utils.InitNorthChina();
|
||||
//Utils.InitEastChina();
|
||||
//Utils.InitUS();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task SaveImage() {
|
||||
AVFile file = new AVFile("hello.png", File.ReadAllBytes("hello.png"));
|
||||
AVFile file = new AVFile("hello.png", File.ReadAllBytes("../../../assets/hello.png"));
|
||||
await file.SaveAsync();
|
||||
Assert.NotNull(file.ObjectId);
|
||||
TestContext.Out.WriteLine($"file: {file.ObjectId}, {file.Url}");
|
||||
|
@ -22,7 +22,7 @@ namespace LeanCloudTests {
|
|||
|
||||
[Test]
|
||||
public async Task SaveBigFile() {
|
||||
AVFile file = new AVFile("test.apk", File.ReadAllBytes("test.apk"));
|
||||
AVFile file = new AVFile("test.apk", File.ReadAllBytes("../../../assets/test.apk"));
|
||||
await file.SaveAsync();
|
||||
Assert.NotNull(file.ObjectId);
|
||||
TestContext.Out.WriteLine($"file: {file.ObjectId}, {file.Url}");
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
Loading…
Reference in New Issue