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); }
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); }
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); }