I would prefer something like:
public static TException Throws<TException, T>(Func<T> action) where TException : Exception { return Assert.Throws<TException>(() => { var v = action(); }); }
I would prefer something like:
public static TException Throws<TException, T>(Func<T> action) Throws< TException> (() => { var v = action(); });
where TException : Exception
{
return Assert.
}