示例#1
0
        public void Does_use_native_Exists_method()
        {
            var container = new Funq.Container();

            container.AddTransient <IFoo>(() => new Foo());

            Assert.That(container.Exists(typeof(IFoo)));
            Assert.That(container.Exists <IFoo>());

            Assert.That(!container.Exists(typeof(Foo)));
            Assert.That(!container.Exists <Foo>());
        }