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

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

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

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