Tests have been rewritten in order to support "Received" check with ApiOptions parameter.

This commit is contained in:
aedampir@gmail.com
2016-03-16 12:17:53 +07:00
parent 7c4185af8e
commit 8c03c90bfc
@@ -28,8 +28,8 @@ namespace Octokit.Tests
client.GetAll();
github.Connection.Received(1).GetResponse<List<EmailAddress>>(_expectedUri,
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 0));
github.Connection.Received(1).Get<List<EmailAddress>>(_expectedUri,
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 0), null);
}
[Fact]
@@ -40,8 +40,8 @@ namespace Octokit.Tests
client.GetAll(ApiOptions.None);
github.Connection.Received(1).GetResponse<List<EmailAddress>>(_expectedUri,
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 0));
github.Connection.Received(1).Get<List<EmailAddress>>(_expectedUri,
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 0), null);
}
}