Exemplo n.º 1
0
        public void Test_Matches_ReturnsFalse_WhenTheGivenTypeDoesNotImplementTheInterface()
        {
            InterfaceImplementationTypeMatcher matcher = new InterfaceImplementationTypeMatcher(typeof(MyApp.IRepository), "", "");

            Assert.IsFalse(matcher.Matches(typeof(MyApp.MyController)));
        }
Exemplo n.º 2
0
        public void Test_Matches_ReturnsTrue_WhenTheGivenTypeDoesImplementTheInterface()
        {
            InterfaceImplementationTypeMatcher matcher = new InterfaceImplementationTypeMatcher(typeof(MyApp.IRepository), "", "");

            Assert.IsTrue(matcher.Matches(typeof(MyApp.MyRepository)));
        }
Exemplo n.º 3
0
 public void Test_Construction_ThrowsAnExceptionWhenANonInterfaceTypeIsSupplied()
 {
     InterfaceImplementationTypeMatcher matcher = new InterfaceImplementationTypeMatcher(typeof(MyApp.MyRepository), "", "");
 }