Esempio n. 1
0
        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);
            });
        }
Esempio n. 2
0
        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);
        }