public void ShouldThrowExceptionWhenValueIsLessThan1() { var richMenuBounds = new RichMenuBounds(); ExceptionAssert.Throws <InvalidOperationException>("The width cannot be less than 1.", () => { richMenuBounds.Width = 0; }); }
public async Task ShouldThrowExceptionWhenRichMenuIsNull() { ILineBot bot = TestConfiguration.CreateBot(); await ExceptionAssert.ThrowsArgumentNullExceptionAsync("richMenu", async() => { await bot.CreateRichMenu(null); }); }
public void ShouldThrowExceptionWhenValueIsBiggerThan2500() { var richMenuBounds = new RichMenuBounds(); ExceptionAssert.Throws <InvalidOperationException>("The width cannot be bigger than 2500.", () => { richMenuBounds.Width = 2501; }); }
public void ShouldThrowException() { var converter = new IActionConverter(); ExceptionAssert.Throws <NotImplementedException>(() => converter.WriteJson(null, null, null)); }