Inheritance: System.Diagnostics.StackFrame
        public void Constructor_NullFrameMethod_DoesNotThrow()
        {
            // on some platforms (e.g. on mono), StackFrame.GetMethod() may return null
            // e.g. for this stack frame:
            //   at (wrapper dynamic-method) System.Object:lambda_method (System.Runtime.CompilerServices.Closure,object,object))

            var stackFrame = new StackFrameWithNullMethod();
            var frame = new ExceptionFrame(stackFrame);

            Assert.AreEqual("(unknown)", frame.Module);
            Assert.AreEqual("(unknown)", frame.Function);
            Assert.AreEqual("(unknown)", frame.Source);
        }
        public void Constructor_NullFrameMethod_DoesNotThrow()
        {
            // on some platforms (e.g. on mono), StackFrame.GetMethod() may return null
            // e.g. for this stack frame:
            //   at (wrapper dynamic-method) System.Object:lambda_method (System.Runtime.CompilerServices.Closure,object,object))

            var stackFrame = new StackFrameWithNullMethod();
            var frame      = new ExceptionFrame(stackFrame);

            Assert.AreEqual("(unknown)", frame.Module);
            Assert.AreEqual("(unknown)", frame.Function);
            Assert.AreEqual("(unknown)", frame.Source);
        }