diff --git a/Storage/Storage.Test/FileTest.cs b/Storage/Storage.Test/FileTest.cs index 1b47b4c..2e5c287 100644 --- a/Storage/Storage.Test/FileTest.cs +++ b/Storage/Storage.Test/FileTest.cs @@ -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}"); diff --git a/Storage/Storage.Test/assets/hello.png b/Storage/Storage.Test/assets/hello.png new file mode 100644 index 0000000..34be68d Binary files /dev/null and b/Storage/Storage.Test/assets/hello.png differ diff --git a/Storage/Storage.Test/assets/test.apk b/Storage/Storage.Test/assets/test.apk new file mode 100644 index 0000000..4d17983 Binary files /dev/null and b/Storage/Storage.Test/assets/test.apk differ