public static int SomeFunction() { throw new Exception(); }
public void ExceptionDoesntCauseFailure() { Assert.AreEqual( @"() => FailingClass.SomeFunction() │ throws System.Exception ", ExpressionToCode.AnnotatedToCode(() => FailingClass.SomeFunction())); }