public void PopulateFromGenericClass() { ApplicationException appEx = null; try { var c = new GenericErrorClass <string, int>(); c.ThrowFromGenericClass(12); } catch (Exception ex) { try { throw new ArgumentException("iThrow", ex); } catch (Exception argEx) { appEx = new ApplicationException("iWrap", argEx); } } Assert.NotNull(appEx); Error ed = appEx.ToErrorModel(); Compare(appEx, ed); }
public void PopulateFromGenericClass() { ApplicationException appEx = null; try { var c = new GenericErrorClass<string, int>(); c.ThrowFromGenericClass(12); } catch (Exception ex) { try { throw new ArgumentException("iThrow", ex); } catch (Exception argEx) { appEx = new ApplicationException("iWrap", argEx); } } Assert.NotNull(appEx); Error ed = appEx.ToErrorModel(); Compare(appEx, ed); }