public void IsMatchReturnsWhetherTypeAndNameMatchTest( Type type, string name, Type matchType, string matchName, bool expected) { var priority = Environment.TickCount; var target = new CreationRule(type, name, priority, (object)null); var actual = target.IsMatch(matchType, matchName); actual.Should().Be(expected); }
public void IsMatchReturnsWhetherTypeAndRegularExpressionMatchTest( Type type, string expression, Type matchType, string matchName, bool expected) { var priority = Environment.TickCount; var regex = new Regex(expression); var target = new CreationRule(type, regex, priority, (object)null); var actual = target.IsMatch(matchType, matchName); actual.Should().Be(expected); }