public void AddAccessTypesSupplyingAceAndIsInAccessTypesSupplyingAcesTest() { AccessTypeStatistics accessTypeStatistics = new AccessTypeStatistics(); var ace = _testHelper.CreateAceWithAbstractRole(); var ace2 = _testHelper.CreateAceWithoutGroupCondition(); Assert.That(accessTypeStatistics.IsInAccessTypesContributingAces(ace), Is.False); Assert.That(accessTypeStatistics.IsInAccessTypesContributingAces(ace2), Is.False); accessTypeStatistics.AddAccessTypesContributingAce(ace); Assert.That(accessTypeStatistics.IsInAccessTypesContributingAces(ace), Is.True); Assert.That(accessTypeStatistics.IsInAccessTypesContributingAces(ace2), Is.False); accessTypeStatistics.AddAccessTypesContributingAce(ace2); Assert.That(accessTypeStatistics.IsInAccessTypesContributingAces(ace), Is.True); Assert.That(accessTypeStatistics.IsInAccessTypesContributingAces(ace2), Is.True); }