public async Task Multicast_ToIsNull_ThrowsException() { ILineBot bot = TestConfiguration.CreateBot(); await ExceptionAssert.ThrowsArgumentNullExceptionAsync("to", async() => { await bot.Multicast((IEnumerable <string>)null, new TextMessage("Test")); }); }
public async Task Multicast_EnumerableMessagesIsNull_ThrowsException() { ILineBot bot = TestConfiguration.CreateBot(); await ExceptionAssert.ThrowsArgumentNullExceptionAsync("messages", async() => { await bot.Multicast(new string[] { "id" }, (IEnumerable <ISendMessage>)null); }); }
public async Task Multicast_WithUserAndEnumerableMessagesAreNull_ThrowsException() { ILineBot bot = TestConfiguration.CreateBot(); await ExceptionAssert.ThrowsArgumentNullExceptionAsync("messages", async() => { await bot.Multicast(new TestUser[] { new TestUser() }, (IEnumerable <ISendMessage>)null); }); }
public async Task Push_EnumerableMessagesIsNull_ThrowsException() { ILineBot bot = TestConfiguration.CreateBot(); await ExceptionAssert.ThrowsArgumentNullExceptionAsync("messages", async() => { await bot.Push("id", (IEnumerable <ISendMessage>)null); }); }
public async Task Push_WithUserAndMessagesIsNull_ThrowsException() { ILineBot bot = TestConfiguration.CreateBot(); await ExceptionAssert.ThrowsArgumentNullExceptionAsync("messages", async() => { await bot.Push(new TestUser(), null); }); }
public async Task Multicast_UserIsNullWithEnumerable_ThrowsException() { IEnumerable <TestTextMessage> messages = Enumerable.Repeat(new TestTextMessage(), 2); ILineBot bot = TestConfiguration.CreateBot(); await ExceptionAssert.ThrowsArgumentNullExceptionAsync("to", async() => { await bot.Multicast((IEnumerable <IUser>)null, messages); }); }
public async Task Push_ToIsNull_ThrowsException() { ILineBot bot = TestConfiguration.CreateBot(); await ExceptionAssert.ThrowsArgumentNullExceptionAsync("to", async() => { await bot.Push((string)null, new TextMessage() { Text = "Test" }); }); }