public void OrderByAdditionalModifier(MemberAdditionalModifier left, MemberAdditionalModifier right, int expected)
        {
            var leftOrderInfo = new MemberOrderInfo()
            {
                AdditionalModifier = left
            };
            var rightOrderInfo = new MemberOrderInfo()
            {
                AdditionalModifier = right
            };

            int result = leftOrderInfo.CompareTo(rightOrderInfo);

            AssertCompare(expected, result);
        }
        public void OrderByAdditionalModifierThenByIdentifier(MemberAdditionalModifier leftAdditional, string leftIdentifier, MemberAdditionalModifier rightAdditional, string rightIdentifier, int expected)
        {
            var leftOrderInfo = new MemberOrderInfo()
            {
                AdditionalModifier = leftAdditional, Identifier = leftIdentifier
            };
            var rightOrderInfo = new MemberOrderInfo()
            {
                AdditionalModifier = rightAdditional, Identifier = rightIdentifier
            };

            int result = leftOrderInfo.CompareTo(rightOrderInfo);

            AssertCompare(expected, result);
        }
        public void OrderByAccessModifierThenByAdditionalModifier(MemberAccessModifier leftAccess, MemberAdditionalModifier leftAdditional, MemberAccessModifier rightAccess, MemberAdditionalModifier rightAdditional, int expected)
        {
            var leftOrderInfo = new MemberOrderInfo()
            {
                AccessModifier = leftAccess, AdditionalModifier = leftAdditional
            };
            var rightOrderInfo = new MemberOrderInfo()
            {
                AccessModifier = rightAccess, AdditionalModifier = rightAdditional
            };

            int result = leftOrderInfo.CompareTo(rightOrderInfo);

            AssertCompare(expected, result);
        }
        public void OrderByMemberTypeThenByAccessModifier(MemberType leftType, MemberAccessModifier leftAccess, MemberType rightType, MemberAccessModifier rightAccess, int expected)
        {
            var leftOrderInfo = new MemberOrderInfo()
            {
                MemberType = leftType, AccessModifier = leftAccess
            };
            var rightOrderInfo = new MemberOrderInfo()
            {
                MemberType = rightType, AccessModifier = rightAccess
            };

            int result = leftOrderInfo.CompareTo(rightOrderInfo);

            AssertCompare(expected, result);
        }
        public void OrderByIdentifier(string left, string right, int expected)
        {
            var leftOrderInfo = new MemberOrderInfo()
            {
                Identifier = left
            };
            var rightOrderInfo = new MemberOrderInfo()
            {
                Identifier = right
            };

            int result = leftOrderInfo.CompareTo(rightOrderInfo);

            AssertCompare(expected, result);
        }
        public void OrderByType(MemberType left, MemberType right, int expected)
        {
            var leftOrderInfo = new MemberOrderInfo()
            {
                MemberType = left
            };
            var rightOrderInfo = new MemberOrderInfo()
            {
                MemberType = right
            };

            int result = leftOrderInfo.CompareTo(rightOrderInfo);

            AssertCompare(expected, result);
        }