public void Test_Matches_ReturnsTrue_WhenTheGivenTypeDoesImplementTheInterface() { InterfaceImplementationTypeMatcher matcher = new InterfaceImplementationTypeMatcher(typeof(MyApp.IRepository), "", ""); Assert.IsTrue(matcher.Matches(typeof(MyApp.MyRepository))); }
public void Test_Matches_ReturnsFalse_WhenTheGivenTypeDoesNotImplementTheInterface() { InterfaceImplementationTypeMatcher matcher = new InterfaceImplementationTypeMatcher(typeof(MyApp.IRepository), "", ""); Assert.IsFalse(matcher.Matches(typeof(MyApp.MyController))); }