Inheritance: IRuleElement
        private void AddUserToTheGroup(string username)
        {
            UserRuleElement user = new UserRuleElement(username);

            users.Add(user);
        }
 public void UpperCaseMatchLowerCaseTest()
 {
     UserRuleElement ruleElement = new UserRuleElement("user");
     Assert.IsTrue(ruleElement.Match("USER"));
 }
 public void SimpleMatchTest()
 {
     UserRuleElement ruleElement = new UserRuleElement("user");
     Assert.IsTrue(ruleElement.Match("user"));
 }
 public void SimpleNonMatchTest()
 {
     UserRuleElement ruleElement = new UserRuleElement("user1");
     Assert.IsFalse(ruleElement.Match("user2"));
 }
 public void RegexMatchTest()
 {
     UserRuleElement ruleElement = new UserRuleElement("[email protected].[0-9]{3}");
     Assert.IsTrue(ruleElement.Match("[email protected]"));
 }