public void StripSpecifiedWrapperException() { _client.AddWrapperExceptions(new Type[] { typeof(WrapperException) }); WrapperException wrapper = new WrapperException(_exception); var exceptions = _client.ExposeStripWrapperExceptions(wrapper); Assert.AreEqual(1, exceptions.Count()); Assert.AreEqual("System.NullReferenceException", exceptions.ElementAt(0).GetType().FullName); }