public void TestSetsActionStringHeaderCollection()
 {
     Mock<Action<WebHeaderCollection, String>> succ = new Mock<Action<WebHeaderCollection,String>>();
     RequestBuilder rb = new RequestBuilder("url", HttpVerb.Get);
     rb.OnSuccess(succ.Object);
     Assert.AreEqual(succ.Object, rb.GetOnSuccess());
 }
 public void TestSetsActionSingleStringReturnsThis()
 {
     Mock<Action<String>> succ = new Mock<Action<String>>();
     RequestBuilder rb = new RequestBuilder("url", HttpVerb.Get);
     Assert.AreEqual(rb, rb.OnSuccess(succ.Object));
 }
 public void TestSetActionStreamReturnsThis()
 {
     Mock<Action<WebHeaderCollection, Stream>> succ = new Mock<Action<WebHeaderCollection, Stream>>();
     RequestBuilder rb = new RequestBuilder("url", HttpVerb.Get);
     Assert.AreEqual(rb, rb.OnSuccess(succ.Object));
 }