public bool Contains(object item) { if (m_oSystemUsers.Contains((TisSystemUser)item)) { return(true); } else { TisSystemUser oSystemUser = GetByIdentity( ((TisSystemUser)item).Name, ((TisSystemUser)item).AuthenticationType); return(oSystemUser != null); } }
public void When_absent_item_is_checked_for_containment_Then_true_is_returned_when_item_is_in_the_list() { var list = new ListWithEvents <int>(new[] { 1, 2, 3, 4 }); Assert.That(list.Contains(0), Is.False); }
public override bool Contains(string sPermission) { return(m_oPermissions.Contains(sPermission)); }