Esempio n. 1
0
        public void PayloadToActivityShouldReturnText(string input, string text)
        {
            var body      = File.ReadAllText(Directory.GetCurrentDirectory() + input);
            var slackBody = SlackHelper.DeserializeBody(body);
            var activity  = SlackHelper.PayloadToActivity(slackBody.Payload);

            Assert.Equal(text, activity.Text);
        }
 public void PayloadToActivityShouldThrowArgumentNullException()
 {
     Assert.Throws <ArgumentNullException>(() => SlackHelper.PayloadToActivity(null));
 }