From fb8acd3d1aced612e005b53bc81c6c1c08863c3f Mon Sep 17 00:00:00 2001 From: "aedampir@gmail.com" Date: Thu, 17 Mar 2016 15:37:01 +0700 Subject: [PATCH] New unit tests have been added to check AuthorizationsClient implementation. --- Octokit.Tests/Clients/AuthorizationsClientTests.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Octokit.Tests/Clients/AuthorizationsClientTests.cs b/Octokit.Tests/Clients/AuthorizationsClientTests.cs index 5aad42ef..6a508582 100644 --- a/Octokit.Tests/Clients/AuthorizationsClientTests.cs +++ b/Octokit.Tests/Clients/AuthorizationsClientTests.cs @@ -37,6 +37,19 @@ namespace Octokit.Tests.Clients Arg.Is(u => u.ToString() == "authorizations"), Args.ApiOptions); } + + [Fact] + public void GetsAListOfAuthorizationsWithApiOptions() + { + var client = Substitute.For(); + var authEndpoint = new AuthorizationsClient(client); + + authEndpoint.GetAll(ApiOptions.None); + + client.Received().GetAll( + Arg.Is(u => u.ToString() == "authorizations"), + Args.ApiOptions); + } } public class TheGetMethod