[TestClass, Isolated] public class Tests { class A { public event Action<int> IntEvent; public A() { IntEvent += (int i) => { throw new Exception(); }; } } [TestMethod] public void Test() { A a = new A(); Isolate.Invoke.Event(() => a.IntEvent += null, 0); } }
[TestMethod, Isolated] public void Test() { A a = new A(); Isolate.Invoke.Event(() => a.IntEvent += null, 0); }