-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Currently to do assertions on throwing methods requires doing a try/catch. It would be nice to mimic other assertion libraries that have a method for asserting on an exception being thrown.
try
{
IntelliTect.TestTools.Console.ConsoleAssert.Expect(view,
() =>
{
ExceptionHandling.Main();
});
}
catch (FormatException)
{
flag = true;
}
Assert.IsTrue(flag);Would be better written similar to:
IntelliTect.TestTools.Console.ConsoleAssert.ExpectThrows<FormatException>(view,
() =>
{
ExceptionHandling.Main();
});Metadata
Metadata
Assignees
Labels
No labels