Exemple #1
0
            public void IsExternalContainerSupported_UnsupportedContainer()
            {
                var serviceLocator = new ServiceLocator();
                var container = new object();

                Assert.IsFalse(serviceLocator.IsExternalContainerSupported(container));
            }
Exemple #2
0
            public void IsExternalContainerSupported_SupportedContainer()
            {
                var serviceLocator = new ServiceLocator();
                var container = new StandardKernel();

                Assert.IsTrue(serviceLocator.IsExternalContainerSupported(container));
            }
Exemple #3
0
 public void IsExternalContainerSupported_ExternalContainerNull()
 {
     var serviceLocator = new ServiceLocator();
     ExceptionTester.CallMethodAndExpectException<ArgumentNullException>(() => serviceLocator.IsExternalContainerSupported(null));
 }