Use exception in CappedStringWriter
The use of `Assert.True` is problematic here as it's throwing an xunit defined exception. In this case `TrueException`. This is problematic because it's not serializable yet it is callable from within our isolated test `AppDomain` instances. In this case we should just be throwing an exception directly here.
Showing
想要评论请 注册 或 登录