public void CallShouldBeDelegatedToKernelConfiguration() { KernelConfigurationMock.Setup(p => p.RemoveBinding(BindingMock.Object)); NinjectModule.RemoveBinding(BindingMock.Object); KernelConfigurationMock.Verify(p => p.RemoveBinding(BindingMock.Object), Times.Once()); }
public void BindingShouldBeRemovedFromBindings() { NinjectModule.Bindings.Add(BindingMock.Object); KernelConfigurationMock.Setup(p => p.RemoveBinding(BindingMock.Object)); NinjectModule.RemoveBinding(BindingMock.Object); Assert.Empty(NinjectModule.Bindings); }
public void NoArgumentNullCheckShouldBePerformed() { const IBinding binding = null; KernelConfigurationMock.Setup(p => p.RemoveBinding(binding)); NinjectModule.RemoveBinding(binding); KernelConfigurationMock.Verify(p => p.RemoveBinding(binding), Times.Once()); }