-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement SteamCommunity.GetAppGroupMemberListAsync()
- Loading branch information
Showing
6 changed files
with
449 additions
and
53 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Threading.Tasks; | ||
|
||
using Xunit; | ||
|
||
namespace Dysnomia.Common.SteamWebAPI.Test { | ||
public class SteamCommunityTest : BaseTestClass { | ||
protected readonly ISteamCommunity steamCommunity; | ||
|
||
public SteamCommunityTest(ISteamCommunity steamCommunity) { | ||
this.steamCommunity = steamCommunity; | ||
} | ||
|
||
[Theory] | ||
[InlineData(1730540, "Alchemistry")] | ||
[InlineData(1299430, "Extortion")] | ||
[InlineData(271590, "Grand Theft Auto V")] | ||
public async Task GetAppGroupMemberListAsync_OK(uint app, string name) { | ||
var res = await steamCommunity.GetAppGroupMemberListAsync(app); | ||
|
||
Assert.True(res.memberCount > 0, res.memberCount.ToString()); | ||
Assert.True(res.groupID64 > 0, res.groupID64.ToString()); | ||
Assert.Equal(name, res.groupDetails.groupName); | ||
} | ||
} | ||
} |
Oops, something went wrong.