public void IsExternalContainerSupported_UnsupportedContainer() { var serviceLocator = new ServiceLocator(); var container = new object(); Assert.IsFalse(serviceLocator.IsExternalContainerSupported(container)); }
public void IsExternalContainerSupported_SupportedContainer() { var serviceLocator = new ServiceLocator(); var container = new StandardKernel(); Assert.IsTrue(serviceLocator.IsExternalContainerSupported(container)); }
public void IsExternalContainerSupported_ExternalContainerNull() { var serviceLocator = new ServiceLocator(); ExceptionTester.CallMethodAndExpectException<ArgumentNullException>(() => serviceLocator.IsExternalContainerSupported(null)); }