Пример #1
0
        public void ComplexFunction_SignatureOnly()
        {
            const string   type                  = "";
            const string   inputSignature        = "TrackedReferenceBaseToScriptingObject_GetAnimationEvent(self)->stateSender_animationState";
            const string   expectedSignatureName = "GetSecondaryTouch_int";
            Stack <string> typeStack             = TypeStackFromOneType(type);
            var            actualSignatureName   = MemberNameGenerator.PureNameWithTypeStack(inputSignature, TypeKind.PureSignature, typeStack);

            Assert.AreEqual(expectedSignatureName, actualSignatureName);
        }
Пример #2
0
        public void BasicFunctionWithType_SignatureOnly()
        {
            const string   type                  = "TouchyFeely";
            const string   inputSignature        = "Touch GetSecondaryTouch (int index)";
            const string   expectedSignatureName = "TouchyFeely.GetSecondaryTouch(int)";
            Stack <string> typeStack             = TypeStackFromOneType(type);
            var            actualSignatureName   = MemberNameGenerator.PureNameWithTypeStack(inputSignature, TypeKind.PureSignature, typeStack); //GetMemberNameFromTypeAndSignature(type, inputSignature);

            Assert.AreEqual(expectedSignatureName, actualSignatureName);
        }
Пример #3
0
        public void BasicFunctionWithEmptyType()
        {
            const string   type                 = "";
            const string   memberSignature      = "Touch GetSecondaryTouch (int index)";
            const string   expectedMemberName   = "GetSecondaryTouch_int";
            Stack <string> typeStack            = TypeStackFromOneType(type);
            var            actualMemberFileName = MemberNameGenerator.PureNameWithTypeStack(memberSignature, TypeKind.PureSignature, typeStack);

            Assert.AreEqual(expectedMemberName, actualMemberFileName);
        }