Exemplo n.º 1
0
        public void Max_TwoValueTests(
            AccessibilityLevel a1, AccessibilityLevel a2, AccessibilityLevel expected)
        {
            AccessibilityLevel actual = AccessibilityLevelMethods.Max(a1, a2);

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        protected override AccessibilityLevel GetAccessibility()
        {
            var accessibility = AccessibilityLevel.None;

            foreach (var requirement in _requirements)
            {
                accessibility = AccessibilityLevelMethods.Max(accessibility, requirement.Accessibility);

                if (accessibility == AccessibilityLevel.Normal)
                {
                    break;
                }
            }

            return(accessibility);
        }