public void CheckIllegalResolving() { var container = new CatLib.Stl.Container(); var bindData = new CatLib.Stl.BindData(container, "CanAddOnResolving", (app, param) => "hello world", false); ExceptionAssert.Throws <ArgumentNullException>(() => { bindData.OnResolving(null); }); }
public void CanAddOnResolving() { var container = new CatLib.Stl.Container(); var bindData = new CatLib.Stl.BindData(container, "CanAddOnResolving", (app, param) => "hello world", false); bindData.OnResolving((bind, obj) => null); var data = bindData.ExecResolvingDecorator(new CatLib.Stl.Container()); Assert.AreEqual(null, data); }