diff --git a/Octokit.Tests/Clients/TeamsClientTests.cs b/Octokit.Tests/Clients/TeamsClientTests.cs index 52fbe985..cf49349a 100644 --- a/Octokit.Tests/Clients/TeamsClientTests.cs +++ b/Octokit.Tests/Clients/TeamsClientTests.cs @@ -152,6 +152,22 @@ namespace Octokit.Tests.Clients Args.Object); } + [Fact] + public async Task AllowsEmptyBody() + { + var connection = Substitute.For(); + + var apiConnection = new ApiConnection(connection); + + var client = new TeamsClient(apiConnection); + + await client.AddMembership(1, "user"); + + connection.Received().Put>( + Arg.Is(u => u.ToString() == "teams/1/memberships/user"), + Arg.Is(u => u == null)); + } + [Fact] public async Task EnsuresNonNullOrEmptyLogin() {