public void ThrowsCSharp_01() { HyperlambdaException ex = null; try { throw new HyperlambdaException(); } catch (HyperlambdaException ex2) { ex = ex2; } Assert.Equal(500, ex.Status); Assert.False(ex.IsPublic); }
public void ThrowsCSharp_03() { HyperlambdaException ex = null; try { throw new HyperlambdaException("foo", new ArgumentException()); } catch (HyperlambdaException ex2) { ex = ex2; } Assert.Equal(500, ex.Status); Assert.False(ex.IsPublic); Assert.Equal("foo", ex.Message); Assert.Equal(typeof(ArgumentException), ex.InnerException.GetType()); }