* hello.png: chore: 调整测试文件所在目录
* test.apk: * hello.png: * FileTest.cs: * test.apk:
parent
b511d832c7
commit
56bfee1732
|
@ -7,14 +7,14 @@ namespace LeanCloudTests {
|
||||||
public class FileTest {
|
public class FileTest {
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void SetUp() {
|
public void SetUp() {
|
||||||
//Utils.InitNorthChina();
|
Utils.InitNorthChina();
|
||||||
Utils.InitEastChina();
|
//Utils.InitEastChina();
|
||||||
//Utils.InitUS();
|
//Utils.InitUS();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public async Task SaveImage() {
|
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();
|
await file.SaveAsync();
|
||||||
Assert.NotNull(file.ObjectId);
|
Assert.NotNull(file.ObjectId);
|
||||||
TestContext.Out.WriteLine($"file: {file.ObjectId}, {file.Url}");
|
TestContext.Out.WriteLine($"file: {file.ObjectId}, {file.Url}");
|
||||||
|
@ -22,7 +22,7 @@ namespace LeanCloudTests {
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public async Task SaveBigFile() {
|
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();
|
await file.SaveAsync();
|
||||||
Assert.NotNull(file.ObjectId);
|
Assert.NotNull(file.ObjectId);
|
||||||
TestContext.Out.WriteLine($"file: {file.ObjectId}, {file.Url}");
|
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