示例#1
0
        public void IsValidContainer_InvalidContainer()
        {
            var helper = new NinjectHelper();

            var container = new object();

            Assert.IsFalse(helper.IsValidContainer(container));
        }
示例#2
0
        public void IsValidContainer_ValidContainer()
        {
            var helper = new NinjectHelper();

            var container = new StandardKernel();

            Assert.IsTrue(helper.IsValidContainer(container));
        }
示例#3
0
        public void IsValidContainer_Null()
        {
            var helper = new NinjectHelper();

            ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => helper.IsValidContainer(null));
        }