public void OnChildRemoved2() { tlog.Debug(tag, $"OnChildRemoved2 START"); try { MyElement t2 = new MyElement(); Assert.IsNotNull(t2, "null Element"); t2.ChildRemoved(null); } catch (ArgumentNullException e) { Assert.True(true, "Caught Exception" + e.Message.ToString()); } tlog.Debug(tag, $"OnChildRemoved2 END"); }
public void OnChildRemoved() { tlog.Debug(tag, $"OnChildRemoved START"); try { MyElement t2 = new MyElement(); Assert.IsNotNull(t2, "null Element"); t2.ChildRemoved(new MyElement()); } catch (Exception e) { Assert.Fail("Caught Exception" + e.ToString()); } tlog.Debug(tag, $"OnChildRemoved END"); }