-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from JeffreySu/master
同步
- Loading branch information
Showing
20 changed files
with
706 additions
and
250 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
Senparc.Weixin.MP/Senparc.Weixin.MP.Test/AdvancedAPIs/Poi/PoiTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Senparc.Weixin.MP.AdvancedAPIs.Poi; | ||
using Senparc.Weixin.MP.CommonAPIs; | ||
using Senparc.Weixin.MP.Entities; | ||
using Senparc.Weixin.MP.Test.CommonAPIs; | ||
|
||
namespace Senparc.Weixin.MP.Test.AdvancedAPIs | ||
{ | ||
//已经通过测试 | ||
[TestClass] | ||
public class PoiTest : CommonApiTest | ||
{ | ||
[TestMethod] | ||
public void UploadImageTest() | ||
{ | ||
var accessToken = AccessTokenContainer.GetToken(_appId); | ||
|
||
string file = @"E:\1.jpg"; | ||
|
||
var result = PoiApi.UploadImage(accessToken, file); | ||
Assert.IsNotNull(result); | ||
Assert.AreEqual(result.errcode, (int)ReturnCode.请求成功); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.