Tests.NoticeComponentsCreation.Building_error_from_dotNET_exception C# (CSharp) Method

Building_error_from_dotNET_exception() private method

private Building_error_from_dotNET_exception ( ) : void
return void
        public void Building_error_from_dotNET_exception()
        {
            Exception exception;

            try
            {
                throw new InvalidOperationException("test error");
            }
            catch (Exception testException)
            {
                exception = testException;
            }
            string component;
            var error = this.builder.ErrorFromException(exception, out component);
            Assert.AreNotEqual(0, error.Backtrace.Length);

            var trace = error.Backtrace[0];
            Assert.AreEqual("Tests.NoticeComponentsCreation.Building_error_from_dotNET_exception()", trace.Method);
            Assert.AreNotEqual(0, trace.LineNumber);
        }