diff --git a/Octokit.Tests/Clients/AuthorizationsClientTests.cs b/Octokit.Tests/Clients/AuthorizationsClientTests.cs index 1f0f13d5a9..392ec0a42c 100644 --- a/Octokit.Tests/Clients/AuthorizationsClientTests.cs +++ b/Octokit.Tests/Clients/AuthorizationsClientTests.cs @@ -126,8 +126,9 @@ public void GetsOrCreatesAuthenticationAtCorrectUrl() authEndpoint.GetOrCreateApplicationAuthentication("clientId", "secret", data); - client.Received().Put(Arg.Is(u => u.ToString() == "authorizations/clients/clientId"), - Args.Object); + client.Received().Put( + Arg.Is(u => u.ToString() == "authorizations/clients/clientId"), + Arg.Is(o => o.GetType().GetProperty("client_secret").GetValue(o).ToString() == "secret")); } [Fact] @@ -141,7 +142,7 @@ public void GetsOrCreatesAuthenticationAtCorrectUrlUsingTwoFactor() client.Received().Put( Arg.Is(u => u.ToString() == "authorizations/clients/clientId"), - Args.Object, + Arg.Is(o => o.GetType().GetProperty("client_secret").GetValue(o).ToString() == "secret"), "two-factor"); }