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

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

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