public void AttachTo() { tlog.Debug(tag, $"AttachTo START"); var mb = new MyBehavior(typeof(int)); Assert.Throws <ArgumentNullException>(() => mb.TestAttachTo(null)); var v = new View(); Assert.Throws <InvalidOperationException>(() => mb.TestAttachTo(v)); tlog.Debug(tag, $"AttachTo END"); }
public void AttachTo2() { tlog.Debug(tag, $"AttachTo2 START"); var mb = new MyBehavior(typeof(View)); var v = new View(); mb.TestAttachTo(v); mb.TestDetachFrom(v); tlog.Debug(tag, $"AttachTo2 END"); }