public void GetFacebookObjectAsyncOfT_CallsGetTaskAsyncWithTheExpectedPath()
        {
            LocalFacebookClient client = new LocalFacebookClient();
            client.GetFacebookObjectAsync<FacebookConnection<FacebookPicture>>("me/picture").Wait();

            Assert.Equal("me/picture?fields=url", client.Path);
        }
        public async Task GetFacebookObjectAsync_CallsGetTaskAsyncWithTheExpectedPath()
        {
            LocalFacebookClient client = new LocalFacebookClient();
            await client.GetFacebookObjectAsync("me/notes");

            Assert.Equal("me/notes", client.Path);
        }
        public async Task GetFacebookObjectAsyncOfT_CallsGetTaskAsyncWithTheExpectedPath()
        {
            LocalFacebookClient client = new LocalFacebookClient();
            await client.GetFacebookObjectAsync <FacebookConnection <FacebookPicture> >("me/picture");

            Assert.Equal("me/picture?fields=url", client.Path);
        }
        public void GetFacebookObjectAsync_CallsGetTaskAsyncWithTheExpectedPath()
        {
            LocalFacebookClient client = new LocalFacebookClient();
            client.GetFacebookObjectAsync("me/notes").Wait();

            Assert.Equal("me/notes", client.Path);
        }
        public async Task GetFacebookObjectAsyncOfT_ThrowArgumentNullExceptions()
        {
            LocalFacebookClient client = null;
            await Assert.ThrowsArgumentNullAsync(() => client.GetFacebookObjectAsync <SimpleUser>("me"), "client");

            client = new LocalFacebookClient();
            await Assert.ThrowsArgumentNullAsync(() => client.GetFacebookObjectAsync <SimpleUser>(null), "objectPath");
        }
        public void GetFacebookObjectAsyncOfT_ThrowArgumentNullExceptions()
        {
            LocalFacebookClient client = null;
            Assert.ThrowsArgumentNull(
                () => client.GetFacebookObjectAsync<SimpleUser>("me").Wait(),
                "client");

            client = new LocalFacebookClient();
            Assert.ThrowsArgumentNull(
                () => client.GetFacebookObjectAsync<SimpleUser>(null).Wait(),
                "objectPath");
        }
        public void GetFacebookObjectAsync_ThrowArgumentNullExceptions()
        {
            LocalFacebookClient client = null;

            Assert.ThrowsArgumentNull(
                () => client.GetFacebookObjectAsync("me").Wait(),
                "client");

            client = new LocalFacebookClient();
            Assert.ThrowsArgumentNull(
                () => client.GetFacebookObjectAsync(null).Wait(),
                "objectPath");
        }