public void CreateKernelShouldInitializeKernel() { var bootstrapper = new DefaultNinjectBootstrapper(); IKernel kernel = bootstrapper.CallCreateKernel(); Assert.IsNotNull(kernel); Assert.IsInstanceOfType(kernel, typeof(IKernel)); }
public void CreateKernelShouldInitializeKernel() { var bootstrapper = new DefaultNinjectBootstrapper(); IKernel kernel = bootstrapper.CallCreateKernel(); Assert.NotNull(kernel); Assert.IsAssignableFrom <IKernel>(kernel); }
public void RunAddsCompositionKernelToKernel() { var bootstrapper = new DefaultNinjectBootstrapper(); var createdKernel = bootstrapper.CallCreateKernel(); var returnedKernel = createdKernel.Get <IKernel>(); Assert.IsNotNull(returnedKernel); Assert.AreEqual(typeof(StandardKernel), returnedKernel.GetType()); }