public void MockClientCallsCallback()
 {
     var result = false;
     var client = new MockSlackClient(x => result = true);
     client.Post(new SlackMessage());
     Assert.IsTrue(result);
 }
 public void MockClientThrowsException()
 {
     var client = new MockSlackClient(x => { throw new MockClientException(); });
     client.Post(new SlackMessage());
 }
 public void MockClientReturnsTrue()
 {
     var client = new MockSlackClient(true);
     var result = client.Post(new SlackMessage());
     Assert.IsTrue(result);
 }