public void Matches_Schema_Name_Using_ObjectType_When_Only_One_Part_Name_Specified() { var rule = new SchemaFilterRule(FilterOperation.Ignore, "Sch", MatchType.DoesMatch); var objectName = new ObjectIdentifier("Sch"); var result = rule.Matches(objectName, ModelSchema.Schema); Assert.IsTrue(result); }
public void Matches_Schema_Name_Using_NotMatch_Where_Regex_Doesnt_Match() { var rule = new SchemaFilterRule(FilterOperation.Ignore, "Sch", MatchType.DoesNotMatch); var objectName = new ObjectIdentifier("BLANK.BLANK"); var result = rule.Matches(objectName, ModelSchema.Schema); Assert.IsTrue(result); }
public void Does_Not_Match_Object_With_Schema_Name_That_Does_Not_Match_Regex() { var rule = new SchemaFilterRule(FilterOperation.Ignore, "[a-zA-Z]*[0-9]", MatchType.DoesMatch); var objectName = new ObjectIdentifier("Sch", "Tab"); var result = rule.Matches(objectName, null); Assert.IsFalse(result); }