Exemplo n.º 1
0
            public void IsExternalContainerSupported_UnsupportedContainer()
            {
                var serviceLocator = new ServiceLocator();
                var container = new object();

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

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