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);
}