Exemple #1
0
        public void Test_Non_Generic_Resolve_Calls_Generic_Resolve()
        {
            IBinding binding = new MockBaseBinding <ISample>();

            Assert.Throws <BindingResolutionException>(() =>
            {
                var sample = binding.Resolve();
            });
        }
Exemple #2
0
        public void Test_BaseBinding_Wraps_Exception_In_BindingResolutionException()
        {
            MockBaseBinding <ISample> binding = new MockBaseBinding <ISample>();

            Assert.Throws <BindingResolutionException>(() =>
            {
                var sample = binding.Resolve();
            });
        }
Exemple #3
0
        public void Test_BindingType_Returns_Generic_Interface_Type_Of_Binding()
        {
            IBinding binding = new MockBaseBinding <ISample>();

            Assert.Same(typeof(ISample), binding.BindingType);
        }