public async Task Multicast_NoMessages_ThrowsException()
 {
     ILineBot bot = TestConfiguration.CreateBot();
     await ExceptionAssert.ThrowsArgumentEmptyExceptionAsync("messages", async() =>
     {
         await bot.Multicast(new string[] { "id" }, new TextMessage[] { });
     });
 }
Example #2
0
 public async Task Push_NoMessages_ThrowsException()
 {
     ILineBot bot = TestConfiguration.CreateBot();
     await ExceptionAssert.ThrowsArgumentEmptyExceptionAsync("messages", async() =>
     {
         await bot.Push("id", new TextMessage[] { });
     });
 }
 public async Task Multicast_ToIsEmpty_ThrowsException()
 {
     ILineBot bot = TestConfiguration.CreateBot();
     await ExceptionAssert.ThrowsArgumentEmptyExceptionAsync("to", async() =>
     {
         await bot.Multicast(Enumerable.Empty <string>(), new TextMessage("Test"));
     });
 }
Example #4
0
 public async Task Push_ToIsEmpty_ThrowsException()
 {
     ILineBot bot = TestConfiguration.CreateBot();
     await ExceptionAssert.ThrowsArgumentEmptyExceptionAsync("to", async() =>
     {
         await bot.Push(string.Empty, new TextMessage()
         {
             Text = "Test"
         });
     });
 }