Exemplo n.º 1
0
        public void SearchTest()
        {
            var c = new TwitterSearchClient();
            var ret = c.Search("okazuki", 1, 20);
            var completed = false;
            ret.Subscribe(status =>
            {
            },ex =>
            {
                Assert.Fail(ex.ToString());
            }, () =>
            {
                completed = true;
            });

            this.EnqueueConditional(() => completed);
            this.EnqueueCallback(() =>
            {
                var results = ret.ToEnumerable().ToList();
                Assert.IsNotNull(results);
                Assert.AreEqual(20, results.Count());
            });
            this.EnqueueTestComplete();
        }
Exemplo n.º 2
0
 public IObservable<TwitterSearchStatus> SearchNext()
 {
     var client = new TwitterSearchClient();
     return client.Search(this.Query, ++this.CurrentPage, this.ResponseCount);
 }
Exemplo n.º 3
0
 public void CreateInstanceTest()
 {
     var c = new TwitterSearchClient();
 }