public ActionResult Result() { // load a number of all stored messages and push to view in viewbag int count = MonitorApp.CountMessages(); ViewBag.Count = count.ToString(); return(View()); }
public void ArgumentFormatExceptionsTest(params string[] args) => Assert.Throws <FormatException>(() => MonitorApp.Main(args));
public void ArgumentsOutOfRangeExceptionsTest(params string[] args) => Assert.Throws <ArgumentOutOfRangeException>(() => MonitorApp.Main(args));