コード例 #1
0
            public void CallShouldBeDelegatedToKernelConfiguration()
            {
                var service = typeof(string);

                KernelConfigurationMock.Setup(p => p.Unbind(service));

                NinjectModule.Unbind(service);

                KernelConfigurationMock.Verify(p => p.Unbind(service), Times.Once());
            }
コード例 #2
0
            public void NoArgumentNullCheckShouldBePerformed()
            {
                const Type service = null;

                KernelConfigurationMock.Setup(p => p.Unbind(service));

                NinjectModule.Unbind(service);

                KernelConfigurationMock.Verify(p => p.Unbind(service), Times.Once());
            }