コード例 #1
0
        public void RequestsCorrectUrl()
        {
            var connection = Substitute.For <IApiConnection>();
            var client     = new GistsClient(connection);

            client.Get("1");

            connection.Received().Get <Gist>(Arg.Is <Uri>(u => u.ToString() == "gists/1"));
        }