public void Test_Matches_ReturnsTrue_WhenTheNameOfTheGivenTypeDoesHaveTheSuffix() { NameSuffixTypeMatcher matcher = new NameSuffixTypeMatcher("Controller", "", ""); Assert.IsTrue(matcher.Matches(typeof(MyApp.MyController))); }
public void Test_Construction_ThrowsAnExceptionWhenANullSuffixIsSupplied() { NameSuffixTypeMatcher matcher = new NameSuffixTypeMatcher(null, "", ""); }
public void Test_Construction_ThrowsAnExceptionWhenAnEmptyStringSuffixIsSupplied() { NameSuffixTypeMatcher matcher = new NameSuffixTypeMatcher(" ", "", ""); }
public void Test_Construction_DoesNotThrowAnExceptionWhenASuffixIsSupplied() { NameSuffixTypeMatcher matcher = new NameSuffixTypeMatcher("Component", "", ""); }