public async Task ShouldThrowExceptionWhenRichMenuIsInvalid() { var richMenu = new RichMenu(); ILineBot bot = TestConfiguration.CreateBot(); await ExceptionAssert.ThrowsAsync <InvalidOperationException>("The areas cannot be null.", async() => { await bot.CreateRichMenu(richMenu); }); }
public async Task ShouldThrowExceptionWhenRichMenuIsNull() { ILineBot bot = TestConfiguration.CreateBot(); await ExceptionAssert.ThrowsArgumentNullExceptionAsync("richMenu", async() => { await bot.CreateRichMenu(null); }); }